[Gambas-user] Writing to a file on disk

Stefano Palmeri rospolosco at ...152...
Wed Nov 10 16:37:46 CET 2010


Il mercoledì 10 novembre 2010 15:38:57 NW ha scritto:
> My first question on the list.
>
> I am trying to read in a text file with just one line, to make a slight
> change to that line and then to write the new line to the original file on
> disk. The new line should replace the original line in the file.
>
> I can read in the file OK. I then use lineinput and copy the result to a
> text field. I can then make a change to the text.
>
> But I just cannot see how to write the file back to my hard disk with the
> new changed line in place of the original.
>
> Can anyone point me in the right direction please?
>
> Neil
>
> ---------------------------------------------------------------------------
>--- The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

See File.Save() in the help.

Regards,

Stefano





More information about the User mailing list