When we try to analyze data files such as .csv or .txt files, we can use different C and C++ functions and methods to read c++ format string text lines. There can be used some modern ways in C++ besides the C scan function. In this post, we will explain one of the ways that can be used.