ifstream TextIn;

  ofstream TextOut;

  TextIn.open("input.txt");

  TextOut.open("output.txt");


char curCh;

  bool addSpace = true;

  while (TextIn.get(curCh))

  {

    if (addSpace)

    {

      TextOut << "  ";

      addSpace = false;

    }

    if (curCh == '\n')

      addSpace = true;


    TextOut << curCh;

  }


이 코딩에서 while (TextIn.get(curCh))이 부분부터 이해가 안되는데 설명 좀 해줘ㅠ