ReaderCake © Jaasim
ReaderCake --> Easy Read + Write Module For Python 3.7+
Available Functions:
read_all()
write_data()
append_data()
read_line()
read_lines()
Usage :
read_all()
Returnes all data which was read on the file
Ex. print(read_all())
write_data(word)
Writes the Word ( Arg ) Into The File
Ex. write_data('abc')
, file data : abc
append_data(word)
Appends word ( arg ) Into The File
Ex. append_data('xyz')
, file data : abc xyz
read_line(line)
Returns The
line Number Of Charecters In the File
Ex. print(read_line(5))
Output : abc x
read_lines(line)
Returns the No.Of
Line On The File
Ex. print(read_lines(1))
Output : abc xyz
How to Install and Initialize :
pip install readercake
abc = ReaderCake(filename=example.txt, encoding=utf-8, filedir=C:/example.txt)
abc.(function)
Thank You!