123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|110|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Off Topic -> File refusing to stay saved!!...?

Thu, 21 Jan 2010, 23:54
spinal
I have a very weird and irritating problem right now. I have a file on my microSD card that refuses to stay saved. What I mean by that is, I have a vb.net program that creates a text file on the card, once I have ran the program, the file is created/updated and everything looks fine. I can open the file and see the contents that are supposed to be there. But once I remove the card and reinsert it, the file contents revert to a previous version!
I can even delete the file, remove the card, reinsert the card , the file is still missing... good, now when I recreate the file, instead of getting the file with the new contents, it the old sodding file again!!!

A assume Microsoft has something to do with this
Does anyone have any sort of solution to this?

-=-=-
Check out my excellent homepage!
Fri, 22 Jan 2010, 01:59
Jayenkai
hehe.

Obvious questions.
1. Are you Safely Removing it? (/Eject)
2. Are you sure you're writing the new file?
3. Have you considered deleting the original, shoving a timestamp on the new version's filename, then renaming that new file to the old filename.

-=-=-
''Load, Next List!''
Fri, 22 Jan 2010, 04:16
Sticky
I'm guessing it's something to do with read\write caching. Try checking it and reading and writing on multiple computers? Maybe clearing a buffer or something somewhere on the computer in question. Apart from that, I have no card reader or associated devices so I can't really help much.

-=-=-
last.fm
Fri, 22 Jan 2010, 09:00
spinal
1. yes and no, tried both, neither helped
2. yes, tried -

create file over the top of the original, check file, looks ok. after removing and reinserting the reader, the original file is back.

deleting the file, remove and reinsert reader. file still deleted. recreate file, looks ok. remove reader, reinsert reader... old file is back!

3. timestamp?



-- I formatted the card and all seems to work now, but I still have no idea why it did that in the first place

-=-=-
Check out my excellent homepage!
Fri, 22 Jan 2010, 09:22
JL235
Perhaps it's filesystem was corrupt. You'd update it with new data, but it would never stick.
Sun, 24 Jan 2010, 17:50
mindstorm8191
4) Is your application closing the file once its been written?

-=-=-
Vesuvius web game
Mon, 25 Jan 2010, 08:41
spinal
Yes, the file was being closed, also, I did edit the file a few times using notepad, which I assume closed the file properly also.

-=-=-
Check out my excellent homepage!