lopolop Posted December 9, 2005 Share Posted December 9, 2005 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.... Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted December 9, 2005 Moderators Share Posted December 9, 2005 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. Link to comment Share on other sites More sharing options...
lopolop Posted December 9, 2005 Author Share Posted December 9, 2005 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 Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted December 9, 2005 Moderators Share Posted December 9, 2005 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. Link to comment Share on other sites More sharing options...
PartyPooper Posted December 9, 2005 Share Posted December 9, 2005 Use _FileCountLines (need beta) to get the number of lines and give you the count. Link to comment Share on other sites More sharing options...
seandisanti Posted December 9, 2005 Share Posted December 9, 2005 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 everythingone 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now