Jump to content

Function to write text to specific position in each line?


Recommended Posts

Hello,

I have spent some time now looking for an AutoIt function that will write text to a specific position within a file. For instance if I want to write 88 in every line in the file 5 spaces/positions in. I have looked at FileWrite, FileWriteLine and FileWriteToLine but none of those appear to allow what I am looking for.

Example: if I were to have the following lines in a txt file

abcdefghij

aabbccddee

aaabbbcccd

aaaabbbbcc

aaaaabbbbb

and I want to end up with this:

abcde88fghij

aabbc88cddee

aaabb88bcccd

aaaab88bbbcc

aaaaa88bbbbb

Please note that each line is different, but I want to write to the same position within each line. What func should I look at, is there some way to do this with AutoIt? Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...