All pastes #96634 Raw Edit

Anonymous

public cpp v1 · immutable
#96634 ·published 2006-07-23 01:14 UTC
rendered paste body
if((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");                       }