# sys::MemoryFile

    sys::Obj
      sys::MemoryFile

`public final class MemoryFile`

file

  `public File file`

  reference to containing File instance

mem

  `public byte[] mem`

  the contents of the memory file. Modify at your peril.

mode

  `public byte mode`

  'r', 'w', 'm' or 0 if an error

pos

  `public int pos`

  current read/write position in the memory file.

size

  `public int size`

  size of the memory file. Less than zero indicates an error. Modify at your peril.

eof

  `public bool eof()`

  returns true if the position is past the end of file.

writable

  `public bool writable()`

  returns true if the memory file was opened for writing.