Hi,
I am brand new to C++ and am coming from a decent amount of experience with VB. I am trying to find the combination of statements to declare and open a sequential file (local), then read each record into a variable so I can then check for data within certain portions of that variable (substr). So far, I have found no equivalents to performing this in VB. Does anyone out there have the sequence of commands for:
Opening a file called empfile.txt (in current directory, or coded location like the A:\ drive)
Looping thru the file, reading each record looking for a match on data entered by the user and captured in a variable.
Any help would be appreciated. This seems to not be nearly as friendly or intuitive as VB.
Thanks much,
Gary
I am brand new to C++ and am coming from a decent amount of experience with VB. I am trying to find the combination of statements to declare and open a sequential file (local), then read each record into a variable so I can then check for data within certain portions of that variable (substr). So far, I have found no equivalents to performing this in VB. Does anyone out there have the sequence of commands for:
Opening a file called empfile.txt (in current directory, or coded location like the A:\ drive)
Looping thru the file, reading each record looking for a match on data entered by the user and captured in a variable.
Any help would be appreciated. This seems to not be nearly as friendly or intuitive as VB.
Thanks much,
Gary