I have been reading up on fgets and fputs and have this current assignment :
write program that creates a sequential file and writes names and GPAs of several students into following format
Use fputs to write the whole string into the file. The name and the number should be separated with a single space. Each string should be taken from a keyboard. Repeat reading strings until some prohibited value is entered. Don't forget to close the file in the end of your program.
The script file for this assignment should contain the text of the program, commands for compiling and execution, and the newly created file with the data.
END OF INSTRUCTIONS
OK, I am only asking for explanation as to what this whole assignment means. Safe to say the whole lecture for creation of files and reading and writing to such file went over my head entirely.
How do I get started on this? Am I writing a source code file that is compiled and run on it's own or am I creating more than one file....like a source code file that when compiled and ran creates an object file???
Sorry if I sound stupid here. I might just be.
Give me a bit of room for being slow and stupid. This is my first programming language since 1985 (learned BASIC then).
I just am not understanding what the logic is of this assignment.
I have done a program that asks for user input but only by compiling one source code file and running it. Just what is fputs used for??
note: I checked out this entire site and searched for threads with fputs in it to get an idea, but I am still lost.