Look at my script , I don't know why I can't add the @CRLF. when I use it the window can't display properly. opt("GUIOnEventMode",1) #include <GUIConstants.au3> $mainwindow=GUICreate("My GUI edit") GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked") $myedit=GUICtrlCreateEdit ("", 176,32,121,97,$ES_AUTOVSCROLL+$WS_VSCROLL) GUISetState () $file = FileOpen("c:\test.txt", 0) If $file = -1 Then GUICtrlSetData ($myedit,"NO Log",1) EndIf While 1 $line = FileReadLine($file) GUICtrlSetData ($myedit,$line & @CRLF,1) If @error = -1 Then ExitLoop Wend FileClose($file) Func CLOSEClicked() If @GUI_WINHANDLE = $mainwindow Then Exit EndIf EndFunc