[EMAIL PROTECTED] wrote: > The directory pointer points at the two byte filename length counter > in the directory, then GET reads the filename, which is a standard > internal format string. What seems to be happening is that we are in a > directory entry, GET fetches a length word, but fails to find that > number of characters, which I thought was impossible. >
Morning Dilwyn, Are you testing for a null directory entry ? When a file has been deleted, the name size in the directory entry is set to zero. If I'm not mistaken, the code in WinBack (remeber that) has a recursive directory traversal routine which opens the directory and reads entries from it. I suspect the code in there may be useful. I cams across a similar problem when I was writing WinBack all those years ago. Cheers, Norman. _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm