Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
C++ File Read
Name: livingdecay Date: March 15, 2005 at 10:42:50 Pacific OS: Win XP Pro CPU/Ram: Athlon 64 S939 3000+ / 51
Comment:
I am trying to find out what the easiest way to read text from a file into a variable (to put into an editbox) is?
Name: Chi Happens Date: March 16, 2005 at 05:57:18 Pacific
Reply:
string dataLINE = ""; ifstream inFILE ("filename.txt", ios::in ); while(inFILE >> dataLINE) { // dataline now contains a line from the file so you can put it into an editbox }
Hope this helps you Chi
They mostly come at night...mostly
0
Response Number 2
Name: livingdecay Date: March 16, 2005 at 09:38:09 Pacific
Summary: I'm trying to make a relatively simple program but I can't remember what to do to get it to work. What I basically want it to do is read in information from an external file that contains characters a...
Summary: I have tried to create a batch file: copy %filename% c:\files and put it in the send to folder however it does not work. Does anybody know how I would be able to add an icon onto my send to menu to s...
Summary: Hi all, before i begin, yes this is an homework assignment question... got a c++ file I/O question. here is the code that i've so far. #include <iostream> #include <sting> #include <fstream> ...