Is it possible to make a program read data from a file, and use it in the program as custom data? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is it possible to make a program read data from a file, and use it in the program as custom data?

What i mean is can a program take multiple data from a file(like birthday dates) and convert each one into an individual value in the program

17th Aug 2019, 10:11 PM
Nē\/\/b1e
Nē\/\/b1e - avatar
1 Answer
+ 1
You can use StreamReader from System.IO and iterate through each line in order to get all values. https://www.dotnetperls.com/streamreader
17th Aug 2019, 10:21 PM
Tomasz
Tomasz - avatar