Jump to content

Recommended Posts

Posted

is there a way to open a .txt file and like take whats in it(not copying) and set it to a variable that could be used for a message

the .txt file may have like 20kb of info....

  • Moderators
Posted

Have you looked at FileRead() and _FileReadToArray() in the help file?

Also, this >> Answer to most questions << should help in most of the questions you ask.

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.

Posted

i'm not a retard.... i use the help 24/7 but the fileread u need a count right.. what if i dont know the count like i want everything

  • Moderators
Posted

Last I checked, count was [optional].

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.

Posted

i'm not a retard.... i use the help 24/7 but the fileread u need a count right.. what if i dont know the count like i want everything

one thing that i use alot when i want to do what you're wanting to do is:

$Text  = FileRead("C:\text.txt",FileGetSize("C:\text.txt"))

that reads the entire file to a variable that you can then display or manipulate at your discretion

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
×
×
  • Create New...