+ 2

What is the mostly usual way to input data in your projects? Text files, binary files, keyboad,?

How is your program get the data? From what kind of files or may be from keyboad by user?

2nd Dec 2017, 3:28 AM
Nick Sh
Nick Sh - avatar
1 Respuesta
+ 4
It depends on your program. Considering that I'm too lazy to think of a better example, I'll use a game. Primarily, if you make a game, you'd be accepting user input. So, the user clicks stuff, the user types stuff. These are all input via keyboard/screen. Now, the user saves his game. Here is where you write to a file, to read it later if the user starts the game again. So, this is not really input by files, but still. Some programs are kind of made to receive input by files. Let's say, cheat codes. Yes, this is not a good example, but like I said, it is of lack of a better example. A cheating program is designed to read the cheat code from a file and... umm... cheat. So, this is when you input from a file. These examples are probably not applicable, but hope it helped nonetheless. 😉
2nd Dec 2017, 3:37 AM
blackcat1111
blackcat1111 - avatar