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 PostI think you may have misunderstood the assignment. Are you supposed to ask for the information to be put into the file? The name of the file? or both?
Is this a C or C++ program? What compiler and operating system?
Jump to Post>>but idk how to get the file and store it
don't know -- you will probably have to ask your teacher. Saving the file is easy but depends on whether you are writing a C or C++ program, which you failed to answer. I can only presume your program …
Jump to Post>>but idk how to get the file and store it
but depends on whether you are writing a C or C++ program, which you failed to answer.
He did answer, he said he's using C++ and using the Linux Operating System.
jaepi, we don't have much information on specifically …
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 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.
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.