diff --git a/gottkönigphil.py b/gottkönigphil.py new file mode 100644 index 0000000..54a299e --- /dev/null +++ b/gottkönigphil.py @@ -0,0 +1,11 @@ +import json + + + +with open('z.B._pr3_skriptspr_team12_s2\input.txt', 'r') as infile, open('z.B._pr3_skriptspr_team12_s2\personen.json', 'w') as outfile: + for line in infile: + + + + + json.dump(line, outfile, indent = 2, ensure_ascii=False) diff --git a/input.txt b/input.txt new file mode 100644 index 0000000..04419bd --- /dev/null +++ b/input.txt @@ -0,0 +1,4 @@ +Dr. Philipp Gottkönig, Schloss 1 68161 Mannheim, 10.11.1995 + +Knecht Moritz Luttz, Kerker 4 198237918 Offenbach, 6 Winter ago + diff --git a/personen.json b/personen.json new file mode 100644 index 0000000..1a3c7c6 --- /dev/null +++ b/personen.json @@ -0,0 +1 @@ +"Dr. Philipp Gottkönig, Schloss 1 68161 Mannheim, 10.11.1995\n""\n""Knecht Moritz Luttz, Kerker 4 198237918 Offenbach, 6 Winter ago\n""\n" \ No newline at end of file