The question might be more clear if you posted some examples of what you have tried and why it hasn't succeeded.
Are you trying to remove the empty lines? If so one way would be to use:
string[] lines = File.ReadAllLines("path");
using(var writer = File.AppendText("newpath"))
{
foreach(var line in lines)
{
if(!String.IsNullOrWhiteSpace(line))
{
writer.WriteLine(line);
}
}
}