Clever1mba Posted June 12, 2005 Share Posted June 12, 2005 (edited) hello i m back with new problem hope u guyz give me solution bec i always get solution at this forumhere is my code test.txt file contain lots of text but we just find DATES: in test.txt filedates contain like this dates:01/05/05dates:02/05/05 etcwe use dates as keyword #include <Array.au3>#include <GUIConstants.au3>GUICreate("TEST SEARCH") $myedit=GUICtrlCreateEdit (""& @CRLF, 1,50,400,300,$ES_AUTOVSCROLL+$WS_VSCROLL)GUISetState ()$file = FileOpen("test.txt", 0)If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") ExitEndIfWhile 1$char =FileRead($file, 99999999)If @error = -1 Then ExitLoopGUICtrlSetData( $myedit, $char)WendFileClose($file)While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoopWend Edited June 12, 2005 by asimzameer 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