LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   wiring to a text file and being able to save and add to it (https://www.linuxquestions.org/questions/programming-9/wiring-to-a-text-file-and-being-able-to-save-and-add-to-it-347362/)

mrobertson 07-27-2005 02:47 PM

wiring to a text file and being able to save and add to it
 
I am capable of being able to write to a text file. I use the following code in my application:

Code:

FileOpen(10, "C:\Documents and Settings\alogue\Desktop\Coil PDI\PDI.txt", OpenMode.Output)
            PrintLine(10, txtgradecode.Text, ",", txtwidth.Text, ",", txthbgauge.Text, ",", txttargetgauge.Text)
            FileClose(10)

This will write whatever I type into those text boxes to a text file. However, If I write something new in the text boxes it writes over my last entry into the text box. Is there anyway to append to a text file and not have to write over your previous work?

Matir 07-27-2005 03:27 PM

As I posted on your other thread (http://www.linuxquestions.org/questi...13#post1768713), use OutMode.Append


All times are GMT -5. The time now is 05:12 PM.