file_utils.py
is a simple Python module providing basic file-handling functions. This tool helps in reading, writing, appending, and managing files with ease. It can be extended or modified for additional file management utilities.
- Read File: Reads and returns the contents of a specified file.
- Write to File: Writes (and overwrites) specified content to a file.
- Append to File: Appends content to the end of a file.
- Python 3.x
-
Clone the repository:
git clone https://github.com/your-username/file-utils.git
-
Navigate to the project directory:
cd file-utils
-
Import
file_utils
in your Python scripts:from file_utils import read_file, write_to_file, append_to_file
content = read_file("example.txt")
print(content)