I am new to Go, and I am currently working on a project where I have to create a program which does the following:
Count the number of lines with text in a txt. file.
Count the five most used runes in the same txt. file.
Write the result to a new txt. file.
I am new to Go, and unsure how to grasp these tasks. Does anyone have any tips on how I could do so? Most preferably with some lines of code to demonstrate.
Start searching how to open a text file. Then, you can choose which approach it is appropiate for your case. I mean read the file line by line or read all lines in a string or an slice.