I have code that works properly reading a csv file as shown:
var lines = File.ReadAllLines("filename.csv").Select(a => a.Split(',')).ToList();
I want to rewrite this statement to read all files in the folder by prefix.
var lines = Directory.GetFiles("prefix*.csv").Select(a => a.Split(',')).ToList();
This code does not work due to the invalid * character in the path name. I know I can do something similar to this with fileinfo.