Could someone please tell me how to create a file with the name of a variable.
For example, if a user inputted their username to create an account, how could i make a file [theirusername].acc ?
So basically, how do you use a variable, like a string, to access/create a file.
Unfortunately I am forced to use the family comp. so I'm not allowed to install a compiler heh
would
char username[] = "example";
then create a username.acc
create username.acc or example.acc?
Thanks.