[30388f42] Infrastructure Hardening: Repaired CE/Connector DB schema, fixed frontend styling build, implemented robust echo shield in worker v2.1.1, and integrated Lead Engine into gateway.
This commit is contained in:
19
ARCHIVE_legacy_scripts/read_file_content.py
Normal file
19
ARCHIVE_legacy_scripts/read_file_content.py
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
import argparse
|
||||
|
||||
def read_file_content(file_path):
|
||||
"""Reads and prints the content of a specified file."""
|
||||
try:
|
||||
with open(file_path, 'r', encoding='utf-8') as f:
|
||||
print(f.read())
|
||||
except FileNotFoundError:
|
||||
print(f"Error: File not found at '{file_path}'")
|
||||
except Exception as e:
|
||||
print(f"An error occurred: {e}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description="Read and display the content of a file.")
|
||||
parser.add_argument("file_path", help="The path to the file you want to read.")
|
||||
args = parser.parse_args()
|
||||
|
||||
read_file_content(args.file_path)
|
||||
Reference in New Issue
Block a user