Can you show the code you've tried "...with no success"?
In reply to Re: Replace a position in a txt file. by Kenosis in thread Replace a position in a txt file. by BobK1954