Followers 0

getting .txt contents

6 posts in this topic

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....

Share on other sites

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

[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 on other sites

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

Share on other sites

Last I checked, count was [optional].

[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 on other sites

Use _FileCountLines (need beta) to get the number of lines and give you the count.

Share on other sites

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

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz