I have a program to store a persons name and their score, in a txt file in python.
for example this is my current code :
name = input(\"Name: \") score =
Unfortunately with ordinary text files you will need to rewrite the file contents to insert into the middle. You might consider just processing the file to produce the output you want at the end instead of inserting into the middle of the file.