Computing.Net > Forums > Programming > c++ text file input

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

Reply to Message Icon

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



Sponsored Link
Ads by Google

Response Number 1
Name: Lucixir
Date: January 27, 2003 at 20:41:54 Pacific
Reply:

Im kind of lost to what it is exactly you are trying to do, Could you rephrase your questions.

Meaning: What you are trying to do, along with seperate questions in order.

I kind of follow what you are asking but its not that clear.


0
Reply to Message Icon

Related Posts

See More


sreen saver in C Access Programming Help



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: c++ text file input

Create text file based on user input www.computing.net/answers/programming/create-text-file-based-on-user-input/20212.html

Simple text file I/O www.computing.net/answers/programming/simple-text-file-io-/4829.html

text file manipulation in c++ www.computing.net/answers/programming/text-file-manipulation-in-c/11944.html