Re: SLush and File Writing
Shawn Silverman <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
Try calling flush() before close().
-Shawn
On 30-Mar-04, at 12:24 PM, Swami Venkataramani wrote:
> I wrote a program that writes a string to file (which already
> exists). However, when I added this program as a Slush command and
> added this
> Slush command to the .startup file, it does not write to the file
> anymore. I
> tried using the DSFile class too, and still it doesn't work...
>
> Some sample code:
>
> DSFile dfile = new DSFile ("mode.txt");
> FileOutputStream dfileStream = new FileOutputStream (dfile);
> PrintWriter writer = new PrintWriter(dfileStream);
> writer.println(message);
> writer.close ();
>
>
> Any help is appreciated.
>
> Thanks,
>
> Swami.
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini