Horje
file is good in c++ Code Example
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;
}




Cpp

Related
c code to mips assembly converter online Code Example c code to mips assembly converter online Code Example
empty character constant error c++ Code Example empty character constant error c++ Code Example
play sound opencv video c++ Code Example play sound opencv video c++ Code Example
how to change string to lowercase and uperCase in c++ Code Example how to change string to lowercase and uperCase in c++ Code Example
google test assert exception Code Example google test assert exception Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10