SFML community forums

Help => General => Topic started by: Valyok on March 16, 2019, 05:43:06 pm

Title: The file is not created.
Post by: Valyok on March 16, 2019, 05:43:06 pm
A problem that i met that my program cant create and save file.I found no answers anywhere so i decided to ask.
I noticed that when i do not connect sfml all works good. But when i connect sfml my programs cant create file even with help ifstream.(before i try save sf::Image). I reinstalled sfml,but the problem didn't go away.
Here is my code:
       
        sf::Image i;
        i.create(100, 100, sf::Color::Red);
        i.saveToFile("Image.png");
 
This one too:
        std::ofstream p;
        char s[10]{"DonePSiz"};
        p << s;
        p.close();
 
This code dont create the corresponding errors but  despite the absense of errors this code dont create files.
My IDE is visual studio 2017. My sfml version 2.5.1 .I use dynamic sfml,debug x64. My OC is windows 10. My geforce gtx 1060 video card.
Title: Re: The file is not created.
Post by: eXpl0it3r on March 17, 2019, 12:21:40 am
Check your anti virus software or any other odd software you're running.
Also make sure you check in the working directory for the file and not at some other location.