Hi I'm using TString to read a file and extract the information I need. In my unamed macro, I have : ifstream in; TString line; in.open("pendulo2002.txt",ios::in); line.ReadLine(in); cout << line.Data() << endl; (1) line="\"Deivid dos Santos Nascimento\" 2 56.000000 15.370000"; (2) cout << line.Data() << endl; (3) The cout number (1) above, gives me nothing, I have just a newline printed on the screen, but the second (3) one gives me what I was expecting. On the line number (2) I set up line with the first line I have on the file "pendulo2002.txt". It doesn't matter if I use either kFALSE or kTRUE on ReadLine above. No changes if I use cout << line << endl; instead, it gives the same result. I looked for this issue on the mailing list, but could not find the solution. Can someone tell me what I'm doing wrong? Thanks a lot. Luiz
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:21 MET