----- Original Message ----- From: "Barry Gershenfeld" To: Sent: Tuesday, June 19, 2001 12:32 PM Subject: Re: [OT]: Failure of program to write EOF > In the pre-windows days I was able to open the file, and write > a dummy block beyond where the file was supposed to end. DOS > would automatically allocate all the blocks in between and > therein I would find my data. This worked because the block > allocation was dirt simple. Nowadays there are algorithms like > random allocation and try-to-find-a-contiguous-set-of-blocks > that this doesn't work anymore...depends how old your DOS is. > > But! The other suggestion--use CHKDSK--is a much better one, if > it works. Thank you very much. I am working to on becoming an engineer, but I still like to do things the easy way. ;-D The CHKDSK should work esp. if it's a Fat-16 filesystem. He will end up with a ready made file, already with the clusters in the correct order without going thru the time and pain to do it manually. michael > > At 02:07 PM 6/19/01 +0100, you wrote: > >I have an embedded PC104 application that logs data, however the power has > >been switched off without the program writing an end of file. Therefore the > >filename appears but with a size of zero bytes. Is there anyway of > >recovering this data. Its a dos based application and obviously I don't want > >to install any software over the top of the missing data. > >In future obviously we will be closing the file on a regular basis. Any help > >would be appreciated. > > > >Stephen Westwood > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body