I am trying to read text file from Github repository and then write new stuff into it, I managed to get reading part of the code to work, but obviously the normal file.write() wouldn't work on text file that's in the github repository. So is there way to somehow update text file?
filepath = 'file.txt'
with open(filepath) as fp:
line = fp.readline()
print(line)
#fp.write("This won't work, I know")