StudyExchange / LessLine

Less line to read text file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LessLine

Less line to read&write text file

Requirements

  • Python >= 3.6

Installation

$ pip install lessline

Example

from lessline.text_file import read, write

file = 'demo.txt'
text = 'Hello word!\nThis is lessline!'
write(text, file)

text_new = read(file)
print(len(text_new), text_new)

About

Less line to read text file

License:MIT License


Languages

Language:Python 100.0%