-
Notifications
You must be signed in to change notification settings - Fork 0
Tools.file
Kamran edited this page Dec 17, 2021
·
2 revisions
Usage: scan('filename.txt', 'worD To SCAN FoR')
Scan for a word in a file.
Usage: overwrite('example.md', '1. this is an example')
Overwrite a file.
Usage: append('example.md', '2. this is an example')
Append to a file.
Usage: read('filename.txt')
Read the contents of a file.
Usage: create('a_file')
Create a file.
Usage: check('if this file exists')
Check if a file exists.
Usage: delete('filename')
Delete a file
Usage: lsdir('/home/downloads/')
List a directory.
Usage: ls()
List current directory.