Can I write "empty" to a text file?

MisterX b.xavier at internet.lu
Fri Mar 11 12:09:29 EST 2005


delete file myfile is very fast.

However if you just open the file for writing, and not for appending, you
will replace the file... (untested)...  

Writing emptyvar to the file, will do "nothing" to the file... Tested many
times because it was supposed to write something and the variable was empty!
;)

cheers
Xavier
-- 
http://monsieurx.com - the nitrously rev site

> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com 
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of 
> Steve Bonham
> Sent: Friday, March 11, 2005 17:47
> To: How to use Revolution
> Subject: Can I write "empty" to a text file?
> 
> I've got my Rev stack writing data to an external file each 
> time it is used.
> 
> Some times the data is 20 lines long some times it is only 10.
> 
> I've just realized that IF it had 20 lines previously and 
> this time it only write 10-- lines 11 to 20 from the previous 
> time are STILL in the file! This is a problem.
> 
> What's the solution?
> Delete the file prior to opening (recreating) it again?
> Is there an option to put or write empty into a file?
> 
> Thx,
> S
> -- 
> 
> 
> --------------------------------------------------------------
> ------------------------------------
> Steve Bonham
> Director, Faculty Technology Development Laboratory Center 
> for Excellence in Teaching - Georgia Southern University 
> Statesboro, GA 30460-8143
> --------------------------------------------------------------
> ------------------------------------
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 



More information about the use-livecode mailing list