Edit Solved it people. Used a space in stringSeparators array. Updated the working code.
I have a csv file which will be used as a template to fill in values. The place holders or the contents of the file are like so:
[AccountId],[FirstName] [LastName], [Address]
Here's the code to get these place holders:
string[] stringSeparators = new string[] { separator," " };
var values = from line in File.ReadAllLines(@"Template.txt")
select line.Split(stringSeparators, StringSplitOptions.RemoveEmptyEntries);
Regards.