Here is the code:
string firstA = "CREATE DATABASE " + textBox1.Text + ";" + "\n"; string firstB = "USE " + textBox1.Text + ";" + "\n"; firstPart = firstA + firstB; secondPart = "CREATE TABLE " + textBox2.Text + ";" + "\n"; System.IO.StreamWriter textFile = new System.IO.StreamWriter(@"E:\" + path + ".txt"); textFile.WriteLine(firstPart + secondPart); textFile.Close();
Displays:
CREATE DATABASE data;USE data;CREATE TABLEusers;
A must:
CREATE DATABASE data; USE data; CREATE TABLE users;
What is the reason? It seems all right = /
E:\????.txt
? - alexlz pm