Skip to content

iamzhz/easyFile.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

easyFile

It's a project(just one file) to read a file easily. Even though it's not very useful.
And it's just for fun.

Usage

from easyFile import *
# open a file
file = easyFile("path/to/file.txt")
# set read mode
file.set_mode(ReadAs.WORD)
# read the file word by word and print it as a list
file.apply_func(print)

The program will output something like:

['Hi']
['there']
['Glad']
['to']
['see']
['you']

About

To read file more easily

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages