hi,

i have a program that is supposed to read the first line (the only one ) from a text file and pass it as the argument for a process using create process. problem is here:

char str[2000];
fstream file_op("test.txt",ios::in);
file_op >> str;
cout << str;


i was first testing and for some reason i dont get all the text on that line.. only the first segment .. (it is becuase the line has spaces in it) so if it said: one two. it would only print one. any suggestions on how i can accomplish this ?

thanks