The command is used to read an open file.


  1. handle [integer]
    Handle of the opened file.
  2. size [integer]
    Number of bytes to be read.
  3. variablebuffer [string]
    Hexadecimal of the content of read bytes.
  4. variablereturn [integer]
    Number of read bytes.


In the example above the file test.txt has been downloaded using the command downloadfile. The file test.txt has been opened for reading (r) using the command

Note that to find the file size in bytes, for use by the command, we use the command filesystem.filesize.

The result of will be displayed on the display.