How to use the Library fstream to create a File, than write o read from it