[Solved] how to read .dat files in c++ [closed]
Yes, you can use fstream for this. Here is some code you could use for splitting the data into an array devided by a delimiter. just change the DELIMITER to your delimiter. #include <iostream> using std::cout; using std::endl; #include <fstream> using std::ifstream; #include <cstring> const int MAX_CHARS_PER_LINE = 512; const int MAX_TOKENS_PER_LINE = 20; const … Read more