Project

General

Profile

Previous Up Next

_createpack
Create a file, and store an initial content into it. If the file existed already, it is destroyed and recreated with this new content.

I _createpack (
S _content_
W _file_
)
Parameters

_content_
initial data to store in the file
_file_
file to create
Return value

0 if success.

Error :

  • EOK if no error.
  • EARGNIL if one argument is nil.
  • EIO if an i/o error occurs.
  • ECACHE if the operation aborts with the Cache activated.