Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteAllText() [1/2]

static void System.IO.File.WriteAllText ( string path,
string? contents )
inlinestatic

Definition at line 282 of file File.cs.

283 {
284 if (path == null)
285 {
286 throw new ArgumentNullException("path");
287 }
288 if (path.Length == 0)
289 {
290 throw new ArgumentException(SR.Argument_EmptyPath, "path");
291 }
292 using StreamWriter streamWriter = new StreamWriter(path);
293 streamWriter.Write(contents);
294 }

References System.SR.Argument_EmptyPath.

Referenced by Terraria.Testing.PacketHistory.Dump(), Terraria.IO.Preferences.Save(), and Terraria.Social.Steam.WorkshopHelper.UGCBased.APublisherInstance.TryWritingManifestToFolder().