hey guys,
im working on a little program that would ask the user to input file name and would ask the user again to specify the output file so the contents of file one would be transferred in to the file 2.
i have been working on it for few hours and it doesnt work i hope you could show me something that would make this work
thanks in advance
gedas
0
Junior Poster
Recommended Answers
Jump to PostCould we see what you have so far?
Jump to PostTry changing this line
fgets(line, PATH_MAX, stdin);
to
fscanf(stdin, "%s", line);
Will your program open the files now?
All 5 Replies
gerard4143
371
Nearly a Posting Maven
gedas
0
Junior Poster
gerard4143
371
Nearly a Posting Maven
gerard4143
371
Nearly a Posting Maven
gedas
0
Junior 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.