Sunday, December 28, 2014

"http://" and AppendAllText and an empty line in the begining of the address file

Hello


I wite this code but I have an empty line in the begining of the address file.



address = "http://"+"…….." + Environment.NewLine;
String FilePath_address = Application.StartupPath + @"\address.txt";
if (System.IO.File.Exists(FilePath_address))
{
System.IO.File.AppendAllText(FilePath_address, address);
}


No comments:

Post a Comment