I have a big log file with multiple lines separated by new line. Each line entry stores four values.
If I am reading the log file and want to store this information, what data type/object should I use?
Example:
source1 destination1 result time source2 destination1 result time sources3 destination2 result time
The values are not unique between lines and they can repeat.
Can I declare a struct for each line with {source, destination, result, time} values and store the struct object in a List<T> for the entire file?
Yes, you can take the approach of creating your own specific class and making a
Listof that class.Depending on how large your file is, you could do better by using a
DataTableto do this: