std::ifstream input("setting.txt");


std::string szLine;

while (input.eof() == FALSE)

{

getline(input, szLine);

screenWidth  = std::atoi(szLine.c_str());


getline(input, szLine);

screenHeight = std::atoi(szLine.c_str());

}

input.close();


텍스트 파일에

800

600

이라고 써있고


저렇게 겟라인 두번 호출해서


스트링 int형으로 변환해서 저장하는건데


맞음?