I'd like to create an array from a CSV file.
This is about as simple as you can imagine, the CSV file will only ever have one line and these values:
Device, SignalStrength, Location, Time, Age.
I'd like to put these values into one dimensional array.
I've tried some examples but they've all been more complicated than required.
If there is only ever one line then do something like this:
using System; using System.IO; class Program { static void Main() { String[] values = File.ReadAllText(@"d:est.csv").Split(','); } }
2.1m questions
2.1m answers
60 comments
57.0k users