hello there...uhmmm, im having problems with getting the file and storing them...like for example, you ask the user to input a file then that file will be stored...how do you get that file, and where do you store them?? thanks
jaepi 22 Practically a Master Poster
Recommended Answers
Jump to Post>which can be used by including. #include <fstream.h>
Please don't encourage the use of pre-standard headers. We're getting to the point where compilers will refuse to build code that uses them.
Jump to Postusing .h is bad
Jump to Post>Theres absolutley nothing wrong with using the fstream library for
>handling Input/Output streaming.
No, there's not. However, when you say to use fstream.h instead of fstream, you're not using the fstream library. You're using some non-standard library with inconsistent semantics that happens to be called fstream.
Jump to Post>be a sponsor
Or a moderator. One costs you money, the other costs you sanity.
Jump to Post>i was unaware there was a difference.
Now you are. To use the fstream library, you include <fstream>, not <fstream.h>.
All 21 Replies
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
jaepi 22 Practically a Master Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
dr4g 25 Junior Poster
Narue 5,707 Bad Cop Team Colleague
dr4g 25 Junior Poster

iamthwee
jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster
Narue 5,707 Bad Cop Team Colleague
iamthwee commented: yes and since he himself pointed out the OP wanted to use c++ there is no excuse for the confusion. +9

iamthwee
jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster

iamthwee
WaltP commented: Don't be hypocritical -- keep it on topic or don't neg rep for no reason. -2
jbennet 1,618 Most Valuable Poster Team Colleague Featured Poster
Narue 5,707 Bad Cop Team Colleague

iamthwee

iamthwee
Aia commented: Chat room? +0
dr4g 25 Junior Poster
Narue 5,707 Bad Cop Team Colleague
dr4g 25 Junior Poster
jaepi 22 Practically a Master Poster
jaepi 22 Practically a Master 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.