Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 07:24:07 +0000



Post From: How to read file with sc.ReadFile()?

[2022-01-20 02:31:01]
User538858 - Posts: 11
With my ACSIL study, there is a bunch of data that I would like to plot. I have already taken care of the code to plot it, but what would be the best way to read data? I have already tried ifstream, but this made the study "unstable" and thus I turned to sc.ReadFile(). However, I cannot figure out how to read the data and store the resulting strings from each line.

On a related note, what would be the "official" way to store a variable array of strings (what is read in from the file). If there is an easier/better way than std::vector, then any help would be greatly appreciated. Thank you in advance.