Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
#include <fstream>
#include <string>
int main() {
std::ifstream file("test.txt");
std::string line;
while (std::getline(file, line)) {
std::cout << line << std::endl;
}
return 0;
}Coding works best on desktop or with an external keyboard.