--- a/progs/roman.scala Wed Jan 25 17:23:00 2017 +0000
+++ b/progs/roman.scala Thu Jan 26 01:43:31 2017 +0000
@@ -97,14 +97,21 @@
String2Int("abc")
-
-
// (5) The file roman.txt contains a list of roman numerals.
-// Read in these numerals, convert them into integers and then
-// add them all up.
+// Read in these numerals from the file, convert them into
+// integers and then add them all up.
import io.Source
import scala.util._
// function for reading files:
// Source.fromFile("file_name")("ISO-8859-9")
+
+def addromanfile(filename: String) =
+
+//test case
+addromanfile("roman.txt")
+
+
+// Part 2 about Validation of Roman Numerals
+//===========================================