main_templates5/bf.scala
changeset 400 e48ea8300b2d
parent 399 b17a98b0c52f
child 428 cdfa6a293453
equal deleted inserted replaced
399:b17a98b0c52f 400:e48ea8300b2d
    10 
    10 
    11 type Mem = Map[Int, Int]
    11 type Mem = Map[Int, Int]
    12 
    12 
    13 
    13 
    14 // (1) Write a function that takes a file name as argument and
    14 // (1) Write a function that takes a file name as argument and
    15 // and requests the corresponding file from disk. It Returns the
    15 // and requests the corresponding file from disk. It returns the
    16 // content of the file as a String. If the file does not exists,
    16 // content of the file as a String. If the file does not exists,
    17 // the function should Return the empty string.
    17 // the function should return the empty string.
    18 
    18 
    19 import io.Source
    19 import io.Source
    20 import scala.util._
    20 import scala.util._
    21 
    21 
    22 def load_bff(name: String) : String = ???
    22 def load_bff(name: String) : String = ???