Skip to content

mshardey/update-a-file-python-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Update a file through a Python algorithm πŸ‘©β€πŸ’»

πŸ“ Description

This Python script is designed to manage a list of IP addresses in a text file (allow_list.txt). It provides functionality to remove specific IP addresses from the list of allowed addresses.

πŸ§‘β€πŸ« Instructions

  1. Setup: Place the allow_list.txt file in the same directory as the Python script.
  2. Configuration:
    • Modify the import_file variable in the script to match the name of your text file.
    • Update the remove_list variable with the IP addresses that need to be removed from the list.
  3. Execution:
    • Run the Python script.
    • The script will read the initial contents of the file, remove the specified IP addresses, and rewrite the file with the updated list.

πŸ“ƒ License

Licensed under the MIT License, Copyright Β© 2024

About

A program to update a file written in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages