Question: C# I'm having issues with the text file.... Create a text file with random numbers between 100 and 1000000. The random numbers to generate will
C# I'm having issues with the text file....
- Create a text file with random numbers between 100 and 1000000.
- The random numbers to generate will be requested.
- Read the numbers that are in the text file described in point 1 and present them on the screen.
- Options 1 and 2 will be presented through a menu.
- You must add an additional option to end the program.
using System; using System.IO;
namespace Unidad3Act02 { class Program { static void Main(string[] args) { var path = @"data.text";
using var sw = new StreamWriter(path);
for(int i = 1; i <= 1000; i++) { sw.WriteLine(i); } } } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
