Tech Support > Microsoft Windows > Development Resources > read string from input file
read string from input file
Posted by Rahul on December 27th, 2003


hi
i am very much new to VC++.i have a input text file with the foll
contents

IP community interval

i1 j1 k1
i2 j2 k2
..........
where each of i1,i2,j1,j2,k1,k2 is a string.now i can read the entire
line from file by using the ifstream function getline(char
*,int,delimiter).i want to read each string on a line seperately
..please give me the correct call.also give some example of it,so it
may be better to code.I am using MFC.
thanx in advance


Similar Posts