Do you mean like:
Code:
1. ifstream A ( "Startup.txt" );
if ( A.is_open() ){
A.getline( ThePassword, 100 );//1st line
A>> Check1;//2nd line
A.getline( Dummy, 100 );//2nd line
A.getline( TheConfirmCode, 100 );//3rd line
A>> Check2;//4th line
A.close();
}//So, is this correct?
2. ifstream A ( "Startup.txt" );
if ( A.is_open() ){
A.getline( ThePassword, 100 );
A.get( Check1 );//Note this can have 1 till 100 as value ( 1,2,3,4... 54,55,56...100,etc.)
A.getline( TheConfirmCode, 100 );
A.get( Check2 );//Note this can have 1 till 100 as value ( 1,2,3,4... 54,55,56...100,etc.)
A.close();
}//Is this correct?
3. Sorry I don't get the last one. Are 1 and 2 correct?