import os

# Get current directory
current_dir = os.getcwd()

# Open output file
with open("file_list.txt", "w") as f:
    for file in os.listdir(current_dir):
        if os.path.isfile(file):
            f.write(file + "\n")

print("File list saved to file_list.txt")