Computing.Net > Forums > Programming > write test line into log file with

write test line into log file with

Reply to Message Icon

Original Message
Name: ThePuFF
Date: April 25, 2007 at 00:58:01 Pacific
Subject: write test line into log file with
OS: NT4
CPU/Ram: p3 866
Comment:

cant figure this out:-(
i know how to put a dir list into a text file but i cant firgure out what to do with this:
i want to write a word into a status.log file
it has to write it on the next line
in the text file there are allready some entry's
1
2
3
downloaded <--- this is what the batchfile must enter
so its no more then just a word (allways the same) on the next line

anyone can help me with this?

Txs Rintse


Report Offensive Message For Removal


Response Number 1
Name: Mechanix2Go
Date: April 25, 2007 at 01:41:31 Pacific
Reply: (edit)

If you just want to append a line:

echo downloaded >> myfile



=====================================
If at first you don't succeed, you're about average.

M2



Report Offensive Follow Up For Removal

Response Number 2
Name: ThePuFF
Date: April 25, 2007 at 01:49:40 Pacific
Reply: (edit)

txs for youre reply but that doesnt work, i tried that but because of several lines are filled allready with
XXX
XXX
XXX
and on the next line downloaded must be written.
the lines and after that will/must be filled again to.
with just a echo, it will empty all lines and put downloaded in it
that echo i figured out 10 minutes ago:-) but it has to go on the last empty line


Report Offensive Follow Up For Removal

Response Number 3
Name: Mechanix2Go
Date: April 25, 2007 at 05:36:54 Pacific
Reply: (edit)

I'm not with you yet. But if your file is this:

one
two
three

and you do:

echo new >> myfile, you will have:

one
two
three
new


=====================================
If at first you don't succeed, you're about average.

M2



Report Offensive Follow Up For Removal

Response Number 4
Name: ThePuFF
Date: April 25, 2007 at 06:51:06 Pacific
Reply: (edit)

shoot i was trying with 1 > instead of 2

works perfect!! txs


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: write test line into log file with 

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 5 Days.
Discuss in The Lounge