I am assigned a project that requires a c# console application that will be used to manipulate a text file. The text file is a bcp table dump. The program should be able to:
- Split the file into multiple file(s) based on a column given by the user
- Include or exclude the split column from the output
Currently, I am reading in the file as such:
var groupQuery = from name in File.ReadAllLines(fileName)
.Skip(skipHeaderRow)
let n = name.Split(delimiterChars)
group name by n[index] into g
// orderby g.Key
select g;
I am afraid I might run into memory issues since some of the files can have over 2 million reacords and each row is about 2617 bytes