DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   how to choos a path (http://www.daniweb.com/forums/thread102964.html)

az1983us Dec 30th, 2007 10:12 am
Re: reading a text file and searching for a sentence
 
hello all

i can write string in a text file but i don't know how to choos a path like this c:\test\tets.txt
and how can show it on screen

i tried to use fscanf and printf but i couldn't

thanks for yr helps

Ancient Dragon Dec 30th, 2007 10:47 am
Re: reading a text file and searching for a sentence
 
how about
fstream file_op("c:\\test\\output.txt",ios::in);


All times are GMT -4. The time now is 12:19 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC