Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating a stats file

Status
Not open for further replies.

1LastTime

Technical User
Nov 6, 2002
9
US
Need some help on how to update a file that would hold stats
like created date, last date ran, number of times ran etc.
In most of my trials I write to the wrong line or the line does not update. Anyone care to enlightn' me on a proper way to do this. It would be a structured file that all line are consistant. A small example would be greatly appreciated.

thanks in advance.

 
If this is a file that only your or your script will be using, then the profilewr and profilerd commands would probably work the easiest. Otherwise, I have a couple scripts on my samples page that show how to read and update values in a text file. Search for "fseek" to find the scripts (three in all).



 
Hello,

I have a Script that I use to Request Download Info from a Remote System. My Script Creates a Status File that is Updated with info that Contains Login Times, Lines Sent, logout Time, etc....

Hank
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top