Work with files / Basic operations
Check if the file exists
Delete a file
File copying
File moving
Getting file properties
Get the working directory
Create a directory
Delete a directory
Delete a directory with data
Copy a directory
List of files in the directory
import
java
.
io
.
File
val
file =
File
(
"file.txt"
)
val
exists = file.
exists
()
println
(
"exists
is
$exists
"
)