From Lazarus wiki
These examples should be rewritten so that they execute.
- The code compiles and runs as expected. If the file does not exist (or is smaller than 100 bytes) a runtime error will occur, but this is as can be expected. (Bart, March 4th 2015 15:00 CET)