How to access/write into another script within the .blend file?

Hi! Sorry, basic question: how can I, in a script, access another text file in the .blend? I simply need to add a series of lists to the file to be accessed later. Thanks!

EDIT:
while I’m at it, how would one extract a list, line of code, etc. from a text file?

EDIT NEVER MIND I GOT IT THANKS :smiley: