I'm new to Scala, so I've tried to work my way up to reading text files. I am trying to create an object with a method that takes in a string representing a filename and returns an int which is the sum of the values. However, the text file is annoyingly separated by hashtags.
This is what the sample text file looks like:
3#1#8
12#9#25#10
-2#12
1#2
How do you split this?