You have a data file that contains a bunch of numbers (.data file)
zoom_data.dat
3 4
15 16
-5 6
11 -12
The program should get this file and change the string into an int. After, the program should calculate the distance of two integers.
For example, output should be
1<NEW LINE>
1<NEW LINE>
11<NEW LINE>
23<NEW LINE>
# file_name_holder: the string that represents the file name
# dat_buff : the buffer that you use to hold data (MAXIMUM: 300 bytes)
check_file:
####################
####################
jr $ra
Comments
Leave a comment