when I try to create a file on the desktop, typing "file.txt" it prints me out that the file was not opened, I don't know why... it should create the file or maybe override it, can someone help me how can I create or re-write a file just giving the complete path name?
Make sure the filepath you have given it exists. In unix systems, to specify an absolute pathname, you usually start the name with a '/' symbol. I'm not sure what it is on windows. But make sure you are specifying the full path to your program. Or you could run your program on the desktop and just open the file there
Sky3 i am using a book where it gives me an example with char but the example is only with the file name and i wanted to know why it didnt work with the complete path name, and yes i could use string also.