Setting EOF value
If I have a file with lenght=X and I want to "truncate" it at Y, with Y<X, is there a way to set the EOF value to Y in order to delete only the part of the file that I don't want to use?
Thanks.
Claudio
Quote:Original post by BioLichI wouldn't even attempt to use window's ascii mode EOF character, that's little more than a CP/M relic.
If I have a file with lenght=X and I want to "truncate" it at Y, with Y<X, is there a way to set the EOF value to Y in order to delete only the part of the file that I don't want to use?
Thanks.
Claudio
Try Win32's SetEndOfFile or Unix's ftruncate.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement