hi..who knows how to append the list box to the exist text file?
FileStream fs2 = new FileStream(@"C:\Users\Fish\Desktop\fyp-coding\Combine.txt", FileMode.Append, FileAccess.Write,FileShare.Write);//create text file
StreamWriter sw2 = new StreamWriter(fs2, Encoding.Default);
string writetext = ListItemCom2.SelectedItems.ToString();
sw2 = File.AppendText(@"C:\Users\Fish\Desktop\fyp-coding\Combine.txt");
// write to the text file
sw2.Flush();
sw2.Close();
this is my coding.But,it contain errors.Who can help me..?