Re: [Gambas-user] text files

2008-08-26 Thread nando
thing extra. If you do not have the length, then the 2 byte is always prefixed indicating the actual length written. -Fernando -- Original Message --- From: Rob <[EMAIL PROTECTED]> To: gambas-user@lists.sourceforge.net Sent: Tue, 26 Aug 2008 08:48:38 -0400 Subject: Re: [Ga

Re: [Gambas-user] text files

2008-08-26 Thread Rob
On Tuesday 26 August 2008 07:17, Mike wrote: > How do I save a text file without extra chars at the start of the file. > If I save with the following code there is one extra char added to the > start of the file. > WRITE #hfile, "Stuff" > If I use a very long string I get two chars added at the sta

[Gambas-user] text files

2008-08-26 Thread Mike
Hi all How do I save a text file without extra chars at the start of the file. If I save with the following code there is one extra char added to the start of the file. Hfile = OPEN "/home/mike/cmrmsg.txt" FOR WRITE CREATE WRITE #hfile, "Stuff" CLOSE #hfile If I use a very long strin