Jump to content

Don't see the file

- - - - -

  • Please log in to reply
No replies to this topic

#1
AWS

AWS

    Administrator

  • Administrators
  • 53992 posts
  • LocationJoliet, IL U.S.A.

Hi,

Having run this,

// basic file operations

#include "stdafx.h"

#include <iostream>

#include <fstream>

using namespace std;

 

int main () {

      ofstream myfile;

      myfile.open ("c:example.txt");

      myfile << "Writing this to a file.n";

      myfile.close();

      return 0;

}

Why don’t I see this file "c:example.txt"?


Many Thanks & Best Regards, Hua Min


View the full article




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users