in reply to Re^3: Deleting EOF from a file
in thread Deleting EOF from a file

How did you create "dummy.txt"? I haven't been keeping up with all the hidden details of recent MS Windows versions -- it may well be that the practice of appending ^Z to mark EOF on text-mode files has been abandoned.

I happened to try creating a small text file using Notepad on an XP system just now, and I found that there was no ^Z at the end. But I do recall seeing text files created on MS systems in the mid-90's that had been transfered (using binary-mode ftp) to a unix system, and there was a ^Z at the end of each file.

Replies are listed 'Best First'.
Re^5: Deleting EOF from a file
by wfsp (Abbot) on Jul 17, 2004 at 16:06 UTC
    Thanks for your reply.

    ...it may well be the practice of appending ^Z to mark EOF on text-mode files has been abandoned.

    I've come to that conclusion too. I'm still rooting around on Google to learn how Windows marks EOF in text files. I now have a little hex dump script so it would be useful to know.
    Thanks again.