From bebadf9437b68c504ef81ad37d8959a90dd96bd5 Mon Sep 17 00:00:00 2001 From: Daniele Fucini Date: Mon, 16 Dec 2024 18:44:57 +0100 Subject: [PATCH] Move input files for Python programs to separate dir --- Python/{ => input}/matrix.txt | 0 Python/{ => input}/p018_triangle.txt | 0 Python/{ => input}/p022_names.txt | 0 Python/{ => input}/p042_words.txt | 0 Python/{ => input}/p054_poker.txt | 0 Python/{ => input}/p059_cipher.txt | 0 Python/{ => input}/p067_triangle.txt | 0 Python/{ => input}/p079_keylog.txt | 0 Python/{ => input}/p096_sudoku.txt | 0 Python/{ => input}/p099_base_exp.txt | 0 Python/p081.py | 2 +- Python/p082.py | 2 +- Python/p083.py | 2 +- 13 files changed, 3 insertions(+), 3 deletions(-) rename Python/{ => input}/matrix.txt (100%) rename Python/{ => input}/p018_triangle.txt (100%) rename Python/{ => input}/p022_names.txt (100%) rename Python/{ => input}/p042_words.txt (100%) rename Python/{ => input}/p054_poker.txt (100%) rename Python/{ => input}/p059_cipher.txt (100%) rename Python/{ => input}/p067_triangle.txt (100%) rename Python/{ => input}/p079_keylog.txt (100%) rename Python/{ => input}/p096_sudoku.txt (100%) rename Python/{ => input}/p099_base_exp.txt (100%) diff --git a/Python/matrix.txt b/Python/input/matrix.txt similarity index 100% rename from Python/matrix.txt rename to Python/input/matrix.txt diff --git a/Python/p018_triangle.txt b/Python/input/p018_triangle.txt similarity index 100% rename from Python/p018_triangle.txt rename to Python/input/p018_triangle.txt diff --git a/Python/p022_names.txt b/Python/input/p022_names.txt similarity index 100% rename from Python/p022_names.txt rename to Python/input/p022_names.txt diff --git a/Python/p042_words.txt b/Python/input/p042_words.txt similarity index 100% rename from Python/p042_words.txt rename to Python/input/p042_words.txt diff --git a/Python/p054_poker.txt b/Python/input/p054_poker.txt similarity index 100% rename from Python/p054_poker.txt rename to Python/input/p054_poker.txt diff --git a/Python/p059_cipher.txt b/Python/input/p059_cipher.txt similarity index 100% rename from Python/p059_cipher.txt rename to Python/input/p059_cipher.txt diff --git a/Python/p067_triangle.txt b/Python/input/p067_triangle.txt similarity index 100% rename from Python/p067_triangle.txt rename to Python/input/p067_triangle.txt diff --git a/Python/p079_keylog.txt b/Python/input/p079_keylog.txt similarity index 100% rename from Python/p079_keylog.txt rename to Python/input/p079_keylog.txt diff --git a/Python/p096_sudoku.txt b/Python/input/p096_sudoku.txt similarity index 100% rename from Python/p096_sudoku.txt rename to Python/input/p096_sudoku.txt diff --git a/Python/p099_base_exp.txt b/Python/input/p099_base_exp.txt similarity index 100% rename from Python/p099_base_exp.txt rename to Python/input/p099_base_exp.txt diff --git a/Python/p081.py b/Python/p081.py index 2cfab83..617288d 100644 --- a/Python/p081.py +++ b/Python/p081.py @@ -35,7 +35,7 @@ def sum_paths(matrix, m, n): @timing def p081(): try: - with open('matrix.txt', 'r', encoding='utf-8') as fp: + with open('input/matrix.txt', 'r', encoding='utf-8') as fp: matrix = fp.readlines() except FileNotFoundError: print('Error while opening file matrix.txt') diff --git a/Python/p082.py b/Python/p082.py index cb3fe0e..19aa099 100644 --- a/Python/p082.py +++ b/Python/p082.py @@ -25,7 +25,7 @@ from projecteuler import dijkstra, timing @timing def p082(): try: - with open('matrix.txt', 'r', encoding='utf-8') as fp: + with open('input/matrix.txt', 'r', encoding='utf-8') as fp: matrix = fp.readlines() except FileNotFoundError: print('Error while opening file matrix.txt') diff --git a/Python/p083.py b/Python/p083.py index a689b5a..1c7dd3a 100644 --- a/Python/p083.py +++ b/Python/p083.py @@ -24,7 +24,7 @@ from projecteuler import dijkstra, timing @timing def p083(): try: - with open('matrix.txt', 'r', encoding='utf-8') as fp: + with open('input/matrix.txt', 'r', encoding='utf-8') as fp: matrix = fp.readlines() except FileNotFoundError: print('Error while opening file matrix.txt')