hello i would like someone to help me to create a code in C for prompting a user to name a text file and then open it please help me ASAP thank you.
ashok1424
-4
Newbie Poster
Recommended Answers
Jump to Posthello i would like someone to help me to create a code in C for prompting a user to name a text file
use something like:
fscanf(stdin,"%s", &test);
where test is an array of charactersand then open it
Look at fopen for opening files.
If …
All 4 Replies
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
Narue
5,707
Bad Cop
Team Colleague
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured 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.