Anonymous
public cpp v1 · immutableif((f = open(Name, O_RDWR|O_BINARY)) >= 0) { cout<<"Read File that is already created"<<endl; //ReadHead(i); } else if((File(i) = open(Name, O_RDWR|O_CREAT, 0644)) >= 0) { cout<<"Open New File"<<endl; } else { perror("Error in opening file/creating file"); }