Answer the question
In order to leave comments, you need to log in
How to save multiple rows?
How to save multiple rows?
I use this code, but only one line is saved when a large number of lines are output to the console:
File.WriteAllText("random.txt", passed variables to save );
Answer the question
In order to leave comments, you need to log in
You need
var lines = new [] {"a", "b", "c"};
File.WriteAllLines("filename.txt", lines);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question