Skip to main content

Less line to read&write text file

Project description

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)

0.1.0 (2022-10-22)

  • Implement read&write text file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lessline-0.1.0.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distributions

lessline-0.1.0-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

lessline-0.1.0-py2.py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page