Skip to content

nyinger/Files_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

File Utils

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.

Features

  • 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.

Getting Started

Prerequisites

  • Python 3.x

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/file-utils.git
  2. Navigate to the project directory:

    cd file-utils
  3. Import file_utils in your Python scripts:

    from file_utils import read_file, write_to_file, append_to_file

Usage

1. Reading a File

content = read_file("example.txt")
print(content)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages