LoadFile(filename string) (content byte, err error)
filenamein the personal namespace of the caller, this function downloads and returns the content of the corresponding file.
Note that, in the case of sharing files, the corresponding file may or may not be owned by the caller.
Returns an error if:
- The given
filenamedoes not exist in the personal file namespace of the caller.
- The integrity of the downloaded content cannot be verified (indicating there have been unauthorized modifications to the file).
- Loading the file cannot succeed due to any other malicious action.
filename (string) - the name of the file
content (byte), err (error)
- Users can have multiple active user sessions at once.