progs/roman.scala
changeset 108 d39b8733c6ea
parent 105 67ce930b5935
child 109 293ea84d82ca
--- 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
+//===========================================