hirntot Posted October 16, 2005 Share Posted October 16, 2005 I try to write something into a File. I want it to write the text more than once but everytime into the next line. But it doesn't work ... Can somebody help me? $write = FileWrite ("C:\WINDOWS\Temp\text.txt", "text" & @CRLF) $repeat = _StringRepeat($write,4) Link to comment Share on other sites More sharing options...
buzz44 Posted October 16, 2005 Share Posted October 16, 2005 #include <String.au3> $Text = "Text" & @CRLF $Write = FileWrite ("C:\WINDOWS\Temp\text.txt", _StringRepeat($Text, 4)) qq Link to comment Share on other sites More sharing options...
hirntot Posted October 16, 2005 Author Share Posted October 16, 2005 #include <String.au3> $Text = "Text" & @CRLF $Write = FileWrite ("C:\WINDOWS\Temp\text.txt", _StringRepeat($Text, 4))THX it works but i forgot to write that the text should be read trough a input box.$input2 = GUICtrlCreateInput ("Text",90,20,120,20) $text = (($input2) & @CRLF)I've tried it like this but it just writes the number "3" into my file.But i also have a input with numbers that works correctly. So i wondered why it not works the same way ... Link to comment Share on other sites More sharing options...
buzz44 Posted October 16, 2005 Share Posted October 16, 2005 $Input2 = GUICtrlCreateInput ("Text", 90, 20, 120, 20) $Text = GUICtrlRead($Input2) & @CRLF qq Link to comment Share on other sites More sharing options...
hirntot Posted October 16, 2005 Author Share Posted October 16, 2005 Works perfectly, thx mate ... 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