CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
appending a line to a text file


New User

Nov 23, 2009, 6:47 PM

Post #1 of 2 (1154 views)
appending a line to a text file Can't Post

I have a line that I want to append to a text file. Here it is:

Control.LineList.#"#$x".Value = "$array[$x]";

where $x is equal to 2 defined earlier in my program. When the program is run it should append to a text file so the final output should be:

Control.LineList.#"#2".Value = "500";

Having problem with the syntax to make it work. Can anyone help. thanks


Nov 23, 2009, 7:20 PM

Post #2 of 2 (1151 views)
Re: [rttrtcmd2002] appending a line to a text file [In reply to] Can't Post

how are you appending to it right now?? see perldoc -f open to see how to append to file.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives