val br = new BufferedReader(new FileReader("E:\\question\\driver.txt"))
var s: String = null
var list = ListBuffer[String]()
try {
while ((s = br.readLine()) != null) {
if(s == null)
throw new Exception
list += s
s = null
}
} catch {
case exception: Exception =>
}
如果不同用try,,catch退出不了程序,为什么?