Sorry: was beg, not big.
The positioning don't work simply with seekg(...).
I will try to retrive with tellg...
Thank you very much for the reply.
Best regards!
Type: Posts; User: djddj
Sorry: was beg, not big.
The positioning don't work simply with seekg(...).
I will try to retrive with tellg...
Thank you very much for the reply.
Best regards!
i did like this and didn't works:
// ...
char s[200];
ifstream fin;
fin.open("C:\\in.txt");
Thank you for the reply but this is not my point, because i have thousands of lines, i don't want to store all the lines in memory. I wonder how can i close the stream or the file and open it again...
Pls, help me: how can i do this:
I read a text file line-by-line using ifstream.getline();
How can i reposition the pointer so after i read for example 3 lines to start reading from the first...
Thank you for reply!
That's right with the error message.
Ok, pCls1 points to a valid object that has its own memory. Why can not use delete for deleting pCls1? I know, if i using 'new' it works,...
What is hapening here:
I can declare a pointer to cls1 and I can access (set) the cls1 object without 'new' operator?! Why?
MyClass cls1;
MyClass* pCls1 = &cls1;
pCls1->set(int i);...