What do you want to save?
Add Code snippet
New code examples
-
C# 2021-11-12 20:47:14
c sharp how to read a text file
// To save the text as one string use 'ReadAllText()' string text = System.IO.File.ReadAllText(@"C:\filepath\file.txt"); // To save each line seperately in an array use 'ReadAllLines()' string[] lines = System.IO.File.ReadAllLines(@"C:\file... Add solution -
C# 2021-11-08 12:59:18
Read csv file into wpf C#
public IEnumerable<Person> ReadCSV(string fileName) { // We change file extension here to make sure it's a .csv file. // TODO: Error checking. string[] lines = File.ReadAllLines(System.IO.Path.ChangeExtension(fileName, ".csv"))... Add solution -
C# 2021-10-29 15:20:10
text file read all lines c#
// To save the text as one string use 'ReadAllText()' string text = System.IO.File.ReadAllText(@"C:\filepath\file.txt"); // To save each line seperately in an array use 'ReadAllLines()' string[] lines = System.IO.File.ReadAllLines(@"C:\file... Add solution -
C# 2021-10-28 08:22:05
how to read a text file C#
// To save the text as one string use 'ReadAllText()' string text = System.IO.File.ReadAllText(@"C:\filepath\file.txt"); // To save each line seperately in an array use 'ReadAllLines()' string[] lines = System.IO.File.ReadAllLines(@"C:\file... Add solution -
C# 2021-10-02 16:30:06
how to save data on cellphone unity android
using System.IO public class scoreFile { private int[] level; private bool[] completed; private float[] completionTime; private string[] scores; private string fileName; //This class stores information for each of the levels.... Add solution -
C# 2021-09-17 16:11:01
c# open text file
// To save the text as one string use 'ReadAllText()' string text = System.IO.File.ReadAllText(@"C:\filepath\file.txt"); // To save each line seperately in an array use 'ReadAllLines()' string[] lines = System.IO.File.ReadAllLines(@"C:\file... Add solution
Best helpers
Ranking is empty