I am working on my first programming assignment, its more of a practice assignment.
I have been trying for a while now and I cannot figure out how I would be able to use the name of the input file given by the user to OPEN and .txt file and read in data.
Essentially, I need to ask "Please enter the name of the input file."
User enters: "lottery.txt"
and my program is suppose to use that information given by the user to FOPEN that exact .txt file....
Can someone please give me some hints or advice as to how to go about solving this problem?