Selecting specific files from the directory by checking the start value fo the file
Posted on 2004-08-22
Once I open the dir, I check to see if there are any files? if yes, I need to open each and every single file to see if it starts with "ISA". For example , I am looking for files which has data in this format..
ISA*00* *00* *01*123456789 *01*34563456INTP *040624*2120*^*00403*000008218*0*P*:
If it starts with ISA, I need to parse through the entire file which is normally big and store all the lines which start with "ST" in a vector so that I can apply my logic to the data in that vector.
Can you please help me how to tackle this problem.