silverhat
September 14th, 2007, 02:26 PM
Hi there. When using Visual C++(in windows), if i want to read a file(e.g. text.txt), i put it in the same folder& use this code: ifstream in("text.txt");
But now, i'm using KDevelop, if i want to do this, I must enter the full address of file : ifstream in("/home/.../src/text.txt");
I don't like to enter the full address.
Everyone please help me solving this.Thanks!
But now, i'm using KDevelop, if i want to do this, I must enter the full address of file : ifstream in("/home/.../src/text.txt");
I don't like to enter the full address.
Everyone please help me solving this.Thanks!