pegases Posted September 6, 2007 Report Share Posted September 6, 2007 Hi, I am trying to search through a text file till I find a specific name. Is there a way to setup a loop till end of file reading line by line. I know that Text File Begin Process can read a line from the file if the line is specified. And there is a repeat folder command that will load all the files in the folder till end but no such command for a file. Thank you, Pegases Quote Link to comment Share on other sites More sharing options...
Namino Posted September 6, 2007 Report Share Posted September 6, 2007 You can process every line in a text file by using the Text File Begin Process command. You don't need to specify the line, just select 'Process all Records' starting from record 1. Do you what to stop processing the file when you find the name you are looking for? That would be a bit more complicated... Quote Link to comment Share on other sites More sharing options...
kevin Posted September 6, 2007 Report Share Posted September 6, 2007 Do you what to stop processing the file when you find the name you are looking for? That would be a bit more complicatedThis could be accomplished using the Break command.Text File Begin Process: "test.txt" If Variable %T1% = "A name" Break End If Text File End Process Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.