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....

  1. Create a text file with random numbers between 100 and 1000000.
  • The random numbers to generate will be requested.
  1. Read the numbers that are in the text file described in point 1 and present them on the screen.
  2. Options 1 and 2 will be presented through a menu.
  3. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!