Jump to content

C++: Difference between revisions

1 byte added ,  11 June 2022
Line 166: Line 166:


int main() {
int main() {
   std::istream my_file("my_file.txt");
   std::ifstream my_file("my_file.txt");
   std::string line;
   std::string line;
   // Read line by line
   // Read line by line