C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,997 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hey everyone,
Can anybody tell me why my code isn't working?
I try to write a string to a .txt File.
System.IO.File.WriteAllText(confirmation);
Hello @RobinJ
The signature for WriteAllText is, first parameter is the path and filename while the second is for the string contain information to write to parameter 1.
public static void WriteAllText (string path, string? contents);