Posted by Robert G Laurin on July 29, 2015 at 14:51:26:
Found this info about new Comet32 commands:
PrintFile TheFullPath$ string$
TheFile$ = InputFile(TheFullPath$, excp=FileErr)
If it is a Comet file, I can open it and use a LUN.
If it is a non-Comet file, I can just read it all in one shot or I can write it (print) also in one command.
What I find is that "PrintFile TheFullPath$ string$" does not overwrite the file, but rather append at the end. If I am printing a whole whole file, why would it not overwrite what is there?
Worst, there is no "ClearFile TheFullPath$". Looks like ClearFile is an easy Erase/Create in Comet.
So how do I re-write (PrintFile) a file that I read all (InputFile)?
This is not a CometFile!
Tested on Comet32 2014.491 on Windows 7 x64.
Post a Followup
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.