Link to home
Start Free TrialLog in
Avatar of zimmer9
zimmer9Flag for United States of America

asked on

How would you write a loop routine for a C# console application using Visual Studio 2005 to assign the value in positioins 87 to 95 to a string variable named strAccounts?

I am developing a C# console application using Visual Studio 2005. How would you write a loop routine to read the records in a text file 1 at a time and assign the value of positions
87 to 95 to a string variable titled strAccount while there are records in the text file? The text file resides at C:\files\test.txt.

While (! EOF)
{    
     strAccount = ???
     peformRoutineXXX
}
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial