in reply to Replace a position in a txt file.

Can you show the code you've tried "...with no success"?