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++ text file input
Name: yaser101 Date: January 27, 2003 at 14:05:17 Pacific OS: xp CPU/Ram: 800mhz/128mb
Comment:
Hi, I have a text file that has different data types in one line. for example the first line is string string int and I am searching the file for a certain value of that int. I am not supposed to change the format of the file and also if the value isnt found i am supposed to add the record to the file in the same format. so my question is .. how do i read that line and store each value or string into my own variables ? meaning how do i read different data types in one line from a file ? and then again how do i write to the file later on when i need to add the record ? meaning how do i write different data types in one line to a file ? please help.. ty
Summary: I would like to make a batch file, which I think would be easiest, to create a text file named userinput.cfg. In userinput.cfg, I want it to create this line: user_input_key = "whatever they type" T...
Summary: I have a pretty simple question about reading and writing from a text file. I don't even know if I should be attempting this just yet, as I am really not familiar with pointers(although I'm not sure i...
Summary: Hi, i need some help. Here's what i'm supposed to do. AND NO, this is a hw assignment. Anyway, I have a text file. In it contains revisions made on files and followed by it are version numbers an...