Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22004

How fix my codeblocks compile programm use fstream, cannot open files large 20 mbs?

$
0
0
#include <iostream>
#include <fstream>
#include <string>

using namespace std;

int main(){
     char fileInputPath[256] = "D:\25mb.file";
     ifstream fileInput(fileInputPath, ios::in|ios::binary);
     if (fileInput.is_open() != true) cout << "File not opened.\n";
     return 0;
}

programm result: File not opened

tesing system win7 x32


Viewing all articles
Browse latest Browse all 22004

Trending Articles