Thread: Code failing to create file

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Can anyone tell me how to get the location the file is being saved into?

    Edit: I am trying the below
    Code:
    cout << "Current path is " << std::filesystem::current_path() << endl;
    Tim S.
    Last edited by stahta01; 04-26-2023 at 08:45 PM.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. N00b @ C: Code is failing at line 12 which is a basic scanf
    By Mike Garber in forum C Programming
    Replies: 3
    Last Post: 09-01-2013, 10:25 AM
  2. Replies: 10
    Last Post: 05-14-2013, 07:49 PM
  3. fread failing to read full file
    By DeusAduro in forum C Programming
    Replies: 3
    Last Post: 05-27-2009, 12:21 PM
  4. Failing to open() a file
    By sa125 in forum C Programming
    Replies: 4
    Last Post: 07-31-2008, 11:37 PM
  5. program failing while trying to open/create file
    By 1978Corvette in forum C Programming
    Replies: 17
    Last Post: 04-26-2006, 10:55 AM

Tags for this Thread