Given the following code:
try {
{1}(File("test.txt")).use { scanner ->
while ({2}.hasNext()) {
println(scanner.nextLine())
}
}
} {3} (e: FileNotFoundException) {
{4}.printStackTrace()
}
Please match the missing parts of the code.