Click here to Skip to main content
16,007,932 members
Home / Discussions / C#
   

C#

 
GeneralRe: Completely delete a file Pin
PIEBALDconsult3-Jan-08 8:55
mvePIEBALDconsult3-Jan-08 8:55 
GeneralRe: Completely delete a file Pin
PIEBALDconsult3-Jan-08 16:18
mvePIEBALDconsult3-Jan-08 16:18 
GeneralRe: Completely delete a file Pin
Johan Martensson3-Jan-08 23:29
Johan Martensson3-Jan-08 23:29 
GeneralRe: Completely delete a file [modified] Pin
PIEBALDconsult4-Jan-08 5:51
mvePIEBALDconsult4-Jan-08 5:51 
GeneralRe: Completely delete a file Pin
Johan Martensson4-Jan-08 7:09
Johan Martensson4-Jan-08 7:09 
GeneralRe: Completely delete a file Pin
PIEBALDconsult4-Jan-08 10:03
mvePIEBALDconsult4-Jan-08 10:03 
GeneralRe: Completely delete a file [modified] Pin
Johan Martensson4-Jan-08 12:27
Johan Martensson4-Jan-08 12:27 
GeneralRe: Completely delete a file Pin
PIEBALDconsult4-Jan-08 16:13
mvePIEBALDconsult4-Jan-08 16:13 
Better.

Rather than opening and closing the stream each time you could set the Position back to 0. (Flushing might be required.)

I'd eliminate the needless local variable filelength (but maybe that's just me).

Shouldn't there be a way to truncate a file?


As to the filename; I suspect anyone snooping for data will bypass the FAT (or whatever) and access the disk more directly so I wouldn't be too concerned about it.

At one point I wanted to recover some files from a 5.25" floppy with a corrupted FAT. Using DOS 6 and "Function 440Dh Minor Code 61h Read Track on Logical Drive" I was able to do so.

That article to which I gave you a link talks about more advanced snooping techniquse than that.
GeneralRe: Completely delete a file Pin
Johan Martensson4-Jan-08 21:48
Johan Martensson4-Jan-08 21:48 
GeneralRe: Completely delete a file Pin
PIEBALDconsult5-Jan-08 4:47
mvePIEBALDconsult5-Jan-08 4:47 
GeneralRe: Completely delete a file Pin
Johan Martensson6-Jan-08 11:51
Johan Martensson6-Jan-08 11:51 
GeneralRe: Completely delete a file Pin
PIEBALDconsult6-Jan-08 13:45
mvePIEBALDconsult6-Jan-08 13:45 
GeneralRe: Completely delete a file Pin
Johan Martensson7-Jan-08 1:12
Johan Martensson7-Jan-08 1:12 
GeneralCalling InitializeFromBitmap fails with exception "The method or operation is not implemented" Pin
KeesVer3-Jan-08 2:29
KeesVer3-Jan-08 2:29 
GeneralRe: Calling InitializeFromBitmap fails with exception "The method or operation is not implemented" Pin
KaptinKrunch3-Jan-08 16:29
KaptinKrunch3-Jan-08 16:29 
GeneralRe: Calling InitializeFromBitmap fails with exception "The method or operation is not implemented" Pin
KeesVer3-Jan-08 23:31
KeesVer3-Jan-08 23:31 
Questionopen an associated filetype Pin
peatle3-Jan-08 1:00
peatle3-Jan-08 1:00 
GeneralRe: open an associated filetype Pin
Phil J Pearson3-Jan-08 1:32
Phil J Pearson3-Jan-08 1:32 
GeneralRe: open an associated filetype Pin
Giorgi Dalakishvili3-Jan-08 1:39
mentorGiorgi Dalakishvili3-Jan-08 1:39 
GeneralWriting Objects into a Databases Pin
00carl003-Jan-08 0:50
00carl003-Jan-08 0:50 
GeneralRe: Writing Objects into a Databases Pin
darkelv3-Jan-08 0:57
darkelv3-Jan-08 0:57 
GeneralRe: Writing Objects into a Databases Pin
Giorgi Dalakishvili3-Jan-08 1:39
mentorGiorgi Dalakishvili3-Jan-08 1:39 
GeneralRe: Writing Objects into a Databases Pin
Russell Jones3-Jan-08 5:51
Russell Jones3-Jan-08 5:51 
GeneralRe: Writing Objects into a Databases Pin
Giorgi Dalakishvili3-Jan-08 7:59
mentorGiorgi Dalakishvili3-Jan-08 7:59 
GeneralRe: Writing Objects into a Databases Pin
Russell Jones3-Jan-08 5:55
Russell Jones3-Jan-08 5:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.