I'm trying to write a program that will establish a DB of names and Ids.
The thing is i don't want to scan the entered data to a temporary variable and then put it into the file, but to scan the user's input directly to the file itself.
Is there any way to do so?
If not, what is the most efficient (memory-wise) way to get user's input into the file? char by char?