Documentation •
Dans cet article

The LocalFile class represents a file on the local file system. See Banana.IO for an example.



The name of the codec to be used for reading or writing the file. Default is 'UTF-8'.


Read only. The string of the last occured error. If no error occured it is empty.



Returns the content of the file. This function has no way of reporting errors. Returning an empty string can mean either that the file is empty, or that an error occurred. Check the content of the property errorString to see if an error occured.

write(text [, append])

Write text to the file. If append is set to true, text is appended to the file. Returns true if the operation was succesfully, false otherwise.


Dites-nous comment nous pouvons mieux vous aider
Si les informations contenues dans cette page ne correspondent pas à ce que vous recherchez, ne sont pas suffisamment claires ou ne sont pas à jour, faites-nous savoir.

Partager cet article: Twitter | Facebook | LinkedIn | Email