Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello.,
I am creating a .txt file from AutoCAD with this code.
There is no problem when I open the .txt file with Notepad. But when I import it into Excel, the symbol ø = looks like this = ø
Where can this come from?
Thanks.
private void button1_Click(object sender, EventArgs e)
{
string sPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)+ @"\Donatilar.txt";
string s1="";
foreach (object item in listBox1.Items) s1 += item.ToString() + "\n";
Clipboard.SetText(s1);
//Encoding.GetEncoding("iso-8859-9")
System.IO.StreamWriter SaveFile = new System.IO.StreamWriter(sPath);
foreach (var item in listBox1.Items)
{
SaveFile.WriteLine(item);
}
SaveFile.Close();
MessageBox.Show(sPath + " oluşturuldu !");
}
Solved! Go to Solution.