Navigation

    cpp-logo

    C++ Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Groups
    1. Home
    2. Tags
    3. ifstream
    Log in to post

    • H

      ifstream Datei wird nicht geöffnet
      C++ (alle ISO-Standards) • datei ifstream öffnen • • H.P.Wurst  

      19
      0
      Votes
      19
      Posts
      1077
      Views

      @It0101 lol Nein. Windows hatte mit Leerzeichen im Dateinamen noch nie ein Problem. Also zumindest kein solches. Batch files etc. sind was anderes, aber da haben POSIX Systeme ebenso "Probleme" (=man muss halt escapen oder quoten, gilt für beide Plattformen). @H-P-Wurst hat ja schon bestätigt dass es die fehlende Extension war.
    • F

      ifstream und Sonderzeichen im Dateiname
      C++ (alle ISO-Standards) • ifstream sonderzeichen dateiname • • FlorianWolf  

      5
      0
      Votes
      5
      Posts
      1026
      Views

      ?

      Seit C++17 gibts wohl ne plattfoemunabhängige Lösung. Neue Konstruktoren für ifstreams und die Filesystem lib: https://en.cppreference.com/w/cpp/filesystem/path/path Siehe den 7. Konstruktor.