Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Files to read in my program

Status
Not open for further replies.

vinautieri

Technical User
Dec 17, 2000
1
US
I am in College taking my first year of C++ programming. I have used the #include<fstream> in my program and I used
ifstream infile;
infile.open (&quot;C:\\SP\\grades.txt&quot;)

had to use 2 \\ as Ii would not let me use only one.
My problem is it will not open the file and I can not read from it. I want to have the contents in that file included into my programs output, and nothing I TRY WILL WORK> PLEASE
HELP


Laura
 
I think you have posted to the wrong forum. This is for VB, not C++. While you may get a response from here, you should post this in the C++ forum, or restate the question in term of VB.



MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top