Click here to Skip to main content
14,739,420 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hii everyone ,

i success in this code to display contact details such as email address.the question is,
How i can display the the body text and save this as text file.
also but later i need to search line by line and display text after such as best regards i mean signature of sender .
the code is here.

RequestSettings logininfo = new RequestSettings("",textBox1 .Text ,textBox2 .Text);
logininfo.AutoPaging = true;
ContactsRequest crequest=new ContactsRequest(logininfo) ;
Feed<contact> feedcontacts = crequest.GetContacts();
foreach (Contact gmailAddresses in feedcontacts.Entries)
   Console.WriteLine("\t" + gmailAddresses.Title);
   foreach (EMail emailId in gmailAddresses.Emails) 
      Console.WriteLine("\t" + emailId.Address);
      listBox1.Items.Add(" " + emailId.Address);
Updated 20-Dec-11 11:42am
Wendelius 20-Dec-11 16:42pm
Pre tags added
Jyothikarthik_N 3-Jan-12 7:12am
Can you please rephrase or list out your objectives?

1 solution

This link may help get you started:
How to write to a text file[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900