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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parsing A Text Doc

Status
Not open for further replies.

steve229922

Technical User
Mar 9, 2004
8
US
I'm having alittle trouble getting started. I want to write some code that will go through each line of a text doc and parse out values based on the criteria I program. The tricky part is that the text file is basically a log file so there is no standard format to it.

I want to go line by line and pull out pieces of info. Does anyone have any coding ideas on how to 'scan' a text doc from top to bottom, allowing for pieces of info to be parsed and put into a new table?


Thanks!

 
Just reading the file line by line would be a good start. Then from there you can use string functions to slide a window through the text to find what you're looking for.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top