I am writing a program in C not C++ how do I allow the user to input a name for the file, but not the extension. I will use the extension .csv always.
Alfarata
0
Newbie Poster
Recommended Answers
Jump to Post>This assumes that the user has some kind of brain.
You mean the hypothetical imaginary user that university professors use to avoid teaching students the reality of error checking? I've never met such a user in real life.>you have to detect the period character in the entry string …
Jump to PostHello,
I have seen a lot of error-checking mistakes in the computer labs. And also agree that multiple extensions .here.there are possible too. Also might want to make sure that you are not overwriting a legitimate file that may already exist.
Christian
All 5 Replies
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Narue
5,707
Bad Cop
Team Colleague
kc0arf
68
Posting Virtuoso
Team Colleague
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Narue
5,707
Bad Cop
Team Colleague
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.