Fsend - EndingOsprey317/jlib GitHub Wiki

__init__

jlib.fsend.__init__(file, *args)

This function will append a string of text to a file. Argument 1 will choose which file will get edited. All other arguments, like the echo() function, will append the entire list to the file, separated by a line break.

Overwrite

jlib.fsend.overwrite(file, *args)

This function will overwrite the contents of a file. The contents will be deleted and then replaced by any text provided. Argument 1 will choose which file will get edited. All other arguments will write in each argument of text in to the file, separated by a line break.

Delete

jlib.fsend.delete(file, keepFile)

This function will permanently delete a file. Argument 1 will choose which file will get deleted. Argument 2 is a boolean variable which, if true, will still delete the contents of the file but will keep the file itself.

__str__

jlib.fsend.__str__()

When the module is called as a string it will return the following text:

JLIB: fsend\n--jlib.fsend(): append file
--jlib.fsend.overwrite(): overwrite file
--jlib.fsend.delete(): delete file