InputFile & PrintFile


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Robert G Laurin on July 29, 2015 at 14:51:26:

Found this info about new Comet32 commands:

PrintFile(LUN)string$
PrintFile TheFullPath$ string$
InputFIle(LUN)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.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]