This topic is now archived and is closed to further replies.


Setting EOF

Recommended Posts

No, Oluseyi, you can''t. Remember that EOF is not allowed to be 0-255, so writing it out as a single byte is somewhat hard. The POSIX standard has an ''ftruncate'' function. In Windows you can use OpenFile, SetFilePointer, and SetEndOfFile together.

[Resist Windows XP''s Invasive Production Activation Technology!]

Share this post

Link to post
Share on other sites