In your situation, a file is preferred. When creating a file, the file is created within the working directory of the program (the directory from which the program is running), unless it's created some place else. Simply load the data from the file during run-time.
What do you mean by nothing is produced? All this code does is open a file, write to the file, and then closes the file. It never prompts the client for input.