Sign in to follow this  
Followers 0
schilbiz

Function to write text to specific position in each line?

3 posts in this topic

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!

Share this post


Link to post
Share on other sites



Look at

_StringInsert

GDIPlusDispose - A modified version of GDIPlus that auto disposes of its own objects before shutdown of the Dll using the same function Syntax as the original.EzMySql UDF - Use MySql Databases with autoit with syntax similar to SQLite UDF.

Share this post


Link to post
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
Sign in to follow this  
Followers 0