7 lines
162 B
Text
7 lines
162 B
Text
import "io" for File
|
|
|
|
// file is closed automatically after creation
|
|
File.create("output.txt") {}
|
|
|
|
// check size
|
|
System.print("%(File.size("output.txt")) bytes")
|