How do you read text (.txt) files in RISC V (using RARS simulator)?

902 Views Asked by At

I have a text file called dna.txt which contains ACGGTGCTGTATCCATATCCGTTAACTCTCTTGTGTCACC. I want to count the occurrences of characters C and G in the text file, and the length of the original string.

I want the program to read the input from a text file in the same folder as it is saved (on Windows).

0

There are 0 best solutions below