#include <fstream>
std::ifstream::pos_type filesize(const char* filename)
{
std::ifstream in(filename, std::ifstream::ate | std::ifstream::binary);
return in.tellg();
}
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ifstream hin("<file_name>.txt");
string cont[31];// There are 31 lines in this file
for (int i = 0; i < 32; i++)
{
hin >> cont[i];
cout << i<<" " << cont[i]<<endl;
}
return 0;
}