Sign in to follow this  
Followers 0
JamesWilcox

How do I open a file in AutoIt v3 and read its contents?

6 posts in this topic

Does anyone have an example of opening a file and reading the contents of the file in AutoIt v3 ?

Share this post


Link to post
Share on other sites



Does anyone have an example of opening a file and reading the contents of the file in AutoIt v3 ?

yes, it's in the help file. FileRead().


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

Have you tried _FileReadToArray or FileRead ? I may not understand quiet what you're wanting to do.


A decision is a powerful thing

Share this post


Link to post
Share on other sites

I need to open a file and read the contents and send them to a control in an executable, is it possible?

Share this post


Link to post
Share on other sites

I need to open a file and read the contents and send them to a control in an executable, is it possible?

Look at $CmdLine in the help file.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

I need to open a file and read the contents and send them to a control in an executable, is it possible?

Yes. FileRead(). Why don't you read the help file and have a look at the sample scripts for FileRead(). Also see ControlSend().


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

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