Hi, I want to creat a record of user journey thought the game I'm coding, that would record a script of the user inputs to a separate log file, I am thinking of creating a userrecord class and the user input will be stored into a text file using filewriter class from java.io.package. Not sure if I write into the file with evey input or store the input into a stack and write at the end of the game. The former avoids the possibity of something goes wrong in the middle of the game, the later insures that problems of file changing directory or other errors (read many problems arise this way) Tom happening. Is there a good practice on doing this?
Thanks!
mumaga 0 Light 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.