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 start of the file.
"WRITE" writes its arguments in binary format, which includes the length of the string in this case. You want PRINT. Rob ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user