Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: The file is not created.  (Read 1100 times)

0 Members and 1 Guest are viewing this topic.

Valyok

  • Newbie
  • *
  • Posts: 1
    • View Profile
The file is not created.
« 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: The file is not created.
« Reply #1 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/