John Matthews wrote:Hi Jakub
Yes. The first argument to fopen() is a char pointer which points to the file path string. fopen() doesn't care where that file path has come from - it can be a fixed string eg. "dir/file.dat", or a char array whose contents (string) have been entered by the user.
Do you know how to read a string from the user? Do you have some code you can show us?