Hello guys help please i'm trying to write to a disk and append it whenever i open the program i can add to it instead of witting a new one
StreamWriter Write;
Write = File.CreateText("c:\\TestFile.txt", FileMode.Append);
Write.WriteAllText(txtOutput.Text);
Write.Close();
MessageBox.Show ("File Created SucacessFully");
getting this error:-
No overload for method 'CreateText' takes '2' arguments
'System.IO.StreamWriter' does not contain a definition for 'WriteAllText' and no extension method 'WriteAllText' accepting a first argument of type 'System.IO.StreamWriter' could be found (are you missing a using directive or an assembly reference?) (CS1061)
and i have using System.IO
in the directive