How to put a string variable inside a doublequote?
<p>So I would like to create a text(like a log file) from the database. Each text represent a user's record.
Obviously each record has different name according to the database.
And I am wondering how to put the string variable inside the doubleqoute when creating the text file.</p>

<pre><code>public static void createLog()
{
    MySqlConnection con = new MySqlConnection();
    con.ConnectionString = "SERVER=localhost;DATABASE=s_project;UID=root;PASSWORD='';";SELECT

    con.Open();
    MySqlCommand thiscommand = con.CreateCommand();
    thiscommand.CommandText = "SELECT user_name FROM user_info";
    MySqlDataReader read = thiscommand.ExecuteReader();

    while (read.Read())
    {
        string user_name;
        user_name = read.GetString("user_name");

        StreamWriter SW;
        SW = File.CreateText("c:\\MyTextFile.txt"); //what should I put instead of MyTextFile if I would like it to be the variable user_name?
    }

    con.Close();
}
</code></pre>
