Below is a method I call to try and read in a vcf file line by line into an array of strings.
internal static void splitUpFile(String fileLocation)
{
string[] file = System.IO.File.ReadAllLines(fileLocation);
System.Console.WriteLine("Contents of contacts.vcf =:");
foreach (string line in file)
{
Console.WriteLine("\t" + line);
}
Console.WriteLine("Press any key to exit.");
System.Console.Read();
}
Now I want to split the array into three other vcf files, which are created dynamically and placed in the same directory as the one that has been read in? Is this possible?