Skip to content

File Handling

EasyLang includes beginner-friendly file operations.


Writing to a File

open "out.txt" as f for write
    writeline f with "EasyLang!"
close f

Reading from a File

open "out.txt" as f for read
    readline f into line
close f

so print line

Appending to a File

open "log.txt" as f for append
    writeline f with "New entry!"
close f

Summary

  • open
  • writeline
  • readline
  • close