System.IO.StreamReader file = new System.IO.StreamReader(textBoxIdModele.Text); string Text = file.ReadToEnd(); file.Close();