Insert text to textfile
Posted: Fri Sep 19, 2008 11:14 am
This is newbie question..any comments will not get paid!
how do you people insert one line text to text file that already contain some text without load all contain to variable and insert whatever text to variable then write back to textfile like i always do....
example...
original textfile
this is line 1............
this is line 2............
this is line 3............
this is line 4............
this is line 5............
,-----------------------------
after insert
this is line 1............
this is line 2............
this is line 3............
this is new line......... <---------new line ad here
this is line 4............
this is line 5............

how do you people insert one line text to text file that already contain some text without load all contain to variable and insert whatever text to variable then write back to textfile like i always do....

example...
original textfile
this is line 1............
this is line 2............
this is line 3............
this is line 4............
this is line 5............
,-----------------------------
after insert
this is line 1............
this is line 2............
this is line 3............
this is new line......... <---------new line ad here
this is line 4............
this is line 5............