fopen with UnrealEngine

Rama has a good wiki on reading/writing files:

As for the file path, it depends on what your project’s Working Directory is. Right click on your project in Visual Studio -> Properties -> Debugging, you’ll see the Working Directory there (it’s usually wherever your project file is).