Page 1 of 1

add text to file

Posted: Fri Jan 15, 2010 12:45 am
by johanmartens
Hi
I would like to add a string to the begining and end of a textfile that already exist. It have a lot of text in it from the start and it change how many rows there is in it from time to time.
 
The problem is that io cant find a action that is able to add text to file in the begining . only to the end of a file.
 
Thanks for help.
Johan

add text to file

Posted: Fri Jan 15, 2010 1:30 am
by Oleg
Use "Write text file" action.
Write in the body of text something like this:

Code: Select all

Some text at the beginning
**************************
{TextFile(C:\myfolder\My_file_name.txt)}
**************************
Some text at the end
variable {TextFile()} puts the text from specified file.

add text to file

Posted: Fri Jan 15, 2010 2:12 am
by johanmartens
Thanks it works perfekt!!
 
Very nice!