vickerps Posted July 22, 2004 Share Posted July 22, 2004 hello guys is there any way you can read a contents of a text file into a edit box I have used the _FileReadToArray But with this you have to specify each pigon box for each line. All i want to do is dump the whole lot into the edit box Link to comment Share on other sites More sharing options...
Arctor Posted July 23, 2004 Share Posted July 23, 2004 FileChangeDir(@ScriptDir) GUICreate("Title", 520, 260) $edit1 = GUISetControl("edit", "", 10, 20 ,500, 230) ;------------------------------------------------- $var = FileRead("list.txt", FileGetSize("list.txt")) GuiShow() GuiWrite($edit1,0,$var) While GUIMsg() <> -3 Wend BTW: It's easy to find in the Helpfile. Look FileRead and GuiWrite. arctor Link to comment Share on other sites More sharing options...
vickerps Posted July 23, 2004 Author Share Posted July 23, 2004 why couldn't i see that it is so simple I even look at that line about five time while i was searching through the help Thankyou for pointing out that i can't read 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