It seems that this function is missing.
BTW Is the return value from OpenFile/OpenPack the File handle on Windows OS ?
Thank you,
RValois.
SetEOF() ?
Re: SetEOF() ?
Not missing. Use Lof with FileSeek and you'll work out the rest. 
http://www.purebasic.com/documentation/file/lof.html
http://www.purebasic.com/documentation/ ... eseek.html

http://www.purebasic.com/documentation/file/lof.html
http://www.purebasic.com/documentation/ ... eseek.html
Thanks for answering but that is not what I am looking for.
SetEOF function is used to truncate/extend the file size.
http://msdn.microsoft.com/library/defau ... offile.asp
Regards,
RValois.
SetEOF function is used to truncate/extend the file size.
http://msdn.microsoft.com/library/defau ... offile.asp
Regards,
RValois.
Yes, it's missing. Ff you desperately need this right now you can always use something like this:
Code: Select all
SetEndOfFile_(UseFile(#YourFileNr))
Note:
If you use SetEndOfFile_(UseFile(#YourFileNr)) to extend your file, Windows
will fill the new file space with data from your memory! This might be
some random nonsense data, but it could also be passwords, or some
personal data, that has just been in memory at that time.
So make sure, you fill the area with data, if neccesarry, with a lot of 0's
Timo
If you use SetEndOfFile_(UseFile(#YourFileNr)) to extend your file, Windows
will fill the new file space with data from your memory! This might be
some random nonsense data, but it could also be passwords, or some
personal data, that has just been in memory at that time.
So make sure, you fill the area with data, if neccesarry, with a lot of 0's
Timo
quidquid Latine dictum sit altum videtur