:sad: how do i save a variable to a file on the hard drive of the computer running it
3265002918
6
Light Poster
Recommended Answers
Jump to PostWhat kind of information?
Jump to PostTry this link, it's a pretty good explanation of File I/O.
http://cplus.about.com/od/beginnerctutorial/l/aa051802a.htm
Jump to PostI'm sure you could.
However:
using namespace std gives you access to the C++ standard library.
According to this book(C++: The complete reference) in my lap, the namespace is a declaritive region (whatever that means) that localizes the names of identifiers to prevent collisions (read, confusion).It allows you …
Jump to Post>generates a whole slew of errors.
What's your compiler?
What are the errors? (As in, please post them.)
Jump to Poston VC++ 6, Running that code gives me two errors...
'ios' is not a class or namespace name
'app' is an undeclared identifier.Try this:
std::fstream myFile("animals.txt",std::ios::app);
ios is part of the std namespace, so you were trying to reference something that didn't exist to your …
All 21 Replies
3265002918
6
Light Poster
Drowzee
3
Posting Whiz in Training
3265002918
6
Light Poster
Drowzee
3
Posting Whiz in Training
Rearden
0
Light Poster
Drowzee
3
Posting Whiz in Training
Dave Sinkula
2,398
long time no c
Team Colleague
Rearden
0
Light Poster
Drowzee
3
Posting Whiz in Training
Rearden
0
Light Poster
3265002918
6
Light Poster
Drowzee
3
Posting Whiz in Training
3265002918
6
Light Poster
Drowzee
3
Posting Whiz in Training
3265002918
6
Light Poster
Drowzee
3
Posting Whiz in Training
3265002918
6
Light Poster
Drowzee
3
Posting Whiz in Training
3265002918
6
Light Poster
Drowzee
3
Posting Whiz in Training
3265002918
6
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.