Design an algorithm that does the following: opens an output file with the external name number_list.dat, uses a loop to write the numbers 1 through 100 to the file and then closes the file.
This is my program: Need help to confirm it is correct
Declare Integer counter = 1
Open numberFile "number_list.dat"
While (counter <= 100)
do
Write "number_list.dat" counter
Counter = counter + 1
End While
Close numberFile