0

How can i automatically assign file name according to user's inputted name?

i am trying to create a program in which number of users inout their name and i want to create a file with the user's name each time. For instance, someone input their name as albert now i wanna create a filename albert.dat without knowing his name.

5th Apr 2020, 6:43 PM
AG47
2 odpowiedzi
+ 1
store the name in a variable and pass it to file.open(var + ". dat") ;
5th Apr 2020, 7:12 PM
Bahhaⵣ
Bahhaⵣ - avatar