How to save data in a program

Hello

It says the error that it contains a path separator