forked from ground/ground
Organisation, documentation, mathlib
This commit is contained in:
13
extlibs/file/README.md
Normal file
13
extlibs/file/README.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# file library
|
||||
|
||||
This library allows reading from and writing to files on the system.
|
||||
|
||||
## Functions
|
||||
|
||||
### fun -string !readFile -string &fileName
|
||||
|
||||
This function reads all content from a file and returns it.
|
||||
|
||||
### fun -bool !writeFile -string &fileName -string &content
|
||||
|
||||
This function overwrites a file with specified content. If successful, returns true. If not successful, returns false, and prints out a reason why it didn't work.
|
Reference in New Issue
Block a user