Insert into text file some text from a script
Posted: Thu Dec 23, 2010 7:15 pm
Hello,
How can I insert into a text file some information for example I would like to insert into different lines the numbers 1 to 10 into a text file and save it into the files.
but instead of showing that on the terminal everytime I run it...I would like it to be saved on the contents of Number file in different lines...
How can I insert into a text file some information for example I would like to insert into different lines the numbers 1 to 10 into a text file and save it into the files.
Code: Select all
/file print file=Number
/file set Number.txt contents=" "
:for i from=1 to=10 do={ :put $i }