low-level file creation RRS feed

  • Question

  • This question is related to my previous one about low-level file creation on FAT - I'm writing a file to an SD card, on a subdirectory (\\ABC\\SETTINGS.TXT).  The subdirectory ABC is created on the root, and the file name SETTINGS.TXT shows up on the ABC subdirectory but when I try to open it, I get "failed to open document" and, from Notepad, "the file or directory is corrupted and unreadable". 

    I believe that I've done everything I need to do with the FAT (it looks as I expect it to in the debugger).  I make a directory with dot and dotDot entries for ABC and add the entry for SETTINGSTXT in the ABC directory.  And it looks like the file data is being written to the correct address.  

    Are there any clues that I can get from the two error messages? 

    I really need some enlightenment on this issue!



    Wednesday, July 5, 2006 5:32 AM