[Gambas-user] Writing a text file from the contents of a text area

Ricardo Díaz Martín oceanosoftlapalma at ...626...
Sun Dec 15 18:43:42 CET 2013


Bill, take a look to gambas documentation for the easy way to save a string
to a text file.

http://gambasdoc.org/help/comp/gb/file/save?v3

Regards,
Ricardo Diaz


2013/12/15 John Rose <john.aaron.rose at ...626...>

> Bill,
>
> The textarea control (i.e. as you see it on the form) has a number
> of lines. But I'm also interested in an example for a textarea string
> having a "number of lines" (i.e. it
> contains \n escape characters). Also, I'm interested in an example where
> a string is repeatedly presented (with different values, each without a
> \n at the end) for writing to a file.
>
> As I previously said the file should be readable (and with each line
> displayed on a separate line) by gedit.
>
> My assumption is that I would have to use an Open command, followed by a
> Write command, followed by a Close command.
>
> --
> Regards, John
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list