Latest minor problem....at least this one is minor.
I have this code.
using (StreamWriter gentxt = new StreamWriter(saveFileDialog1.FileName))
{
for (int i = 0; i < contactlist.Count; i++)
{
gentxt.WriteLine(("Name:"),contactlist.Name);
gentxt.WriteLine("Mobile:",contactlist.Mobile);
gentxt.WriteLine(contactlist.Homephone);
}
That code generates this as a text document.
Name:
Mobile:
54346553456534[/quote]
oviously I want something like.
Name: John
Mobile: 432432565464
Homephone: 87998979969
Etc
Can I only have 1 item (argument) per Writeline or is there another way of doing it?
Cheers
John