Path.GetTempFileName() return a temproray file name with zero sies.
that's why u are not getting any output
The file has data in it which was written "earlier". I just generated the
temp file using gettempfilename.
As i said, I tested the file using a hex editor and it contained the correct
contents.
thank you anyway :)
> Path.GetTempFileName() return a temproray file name with zero sies.
> that's why u are not getting any output
[quoted text clipped - 5 lines]
>> file, the result is returned as the file name and not the file contents!!
>> _BodyFilename is defined by Path.GetTempFileName()
Som Nath Shukla - 28 Sep 2007 14:05 GMT
every time u write Path.GetTemFilename() generates a new temporary file.
send me ur full code .
> The file has data in it which was written "earlier". I just generated the
> temp file using gettempfilename.
[quoted text clipped - 11 lines]
> >> file, the result is returned as the file name and not the file contents!!
> >> _BodyFilename is defined by Path.GetTempFileName()
Som Nath Shukla - 28 Sep 2007 14:15 GMT
you should use Path.GetFilename(Filepath)
instead of GetTempFilename
baoth are different function.
GetTempFilename does not take any argument and generate a temproray file
.tmp extension
> The file has data in it which was written "earlier". I just generated the
> temp file using gettempfilename.
[quoted text clipped - 11 lines]
> >> file, the result is returned as the file name and not the file contents!!
> >> _BodyFilename is defined by Path.GetTempFileName()