Они используют то, что вы выбираете:)
#include <fstream>
#include <iostream>
std::ifstream input("test.txt");
int i;
if (input >> i)
std::cout << i << std::endl;
std::string s;
if (std::getline(input, s))
std::cout << s << std::endl;
Вы можете заменить имя input
на ваше собственное имя: это просто идентификатор.