String.Split(“\n”) ignore breaks in “quotes”

I'm trying to read from a text file and make a array that holds each line of text. I do so by

string[] linesInBank = dataBank.text.Split('\n');

However I want to ignore line breaks that occur within quotes. Is there a way to have split filter them out?

by ponies_lol via /r/csharp

Leave a Reply