Search
 
SCRIPT & CODE EXAMPLE
 

CPP

file is good in c++

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>                       
#include <fstream>                        
using namespace std;
int main() {
    fstream FileName;                   
    FileName.open("FileName.txt", ios::in);         
    if (!FileName) {                        
        cout<<"File doesn’t exist";           
    }
    else {
        cout<<"File opened successfully";         
        }
    }
    FileName.close();                   
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: c++ 2 dim array initialize 
Cpp :: KUNG FU HUSTLE 
Cpp :: distinct numbers cses 
Cpp :: Imports the elements in the array c++ 
Cpp :: c++ abs template 
Cpp :: default order in set in c++ 
Cpp :: C++ (.NET CLI) 
Cpp :: set precision on floating numbers 
Cpp :: converting a string to lowercase inbuld function in cpp 
Cpp :: For auto map C 
Cpp :: GoPro camera for kids aus 
Cpp :: my cpp 
Cpp :: c++ cout format specifier for correct number of decimal points 
Cpp :: how to adjust and delete memory in c, c++ 
Cpp :: how to user input in string to open files in c++ 
Cpp :: how to add 2 objects using operator overloading in c++ 
Cpp :: 01matrix 
Cpp :: multiple objects in vector C++ 
Cpp :: c++ ide online 
Cpp :: c + + to c converter 
Cpp :: how to run c++ on cmd 
Cpp :: c++ copy pointer vector to static 
Cpp :: tempcoderunnerfile.cpp:1:1: error: does not name a type 
Cpp :: how to store array of string with spaces in c++ stl 
Cpp :: is vowel c++/c 
Cpp :: are maps sorted c++ 
Cpp :: intage1 was not declared in this scope C++ 
Cpp :: c++ loop vector iterator 
Cpp :: how to tokenize a string in c++ 
Cpp :: c vs c++ vs c# 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =