8 lines
162 B
Text
8 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")
|