# _StringRepeat but in next Line

## Recommended Posts

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) #### Share this post ##### Link to post ##### Share on other sites #include <String.au3>$Text = "Text" & @CRLF
$Write = FileWrite ("C:\WINDOWS\Temp\text.txt", _StringRepeat($Text, 4))

qq

##### Share on other sites

#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 ...

##### Share on other sites

$Input2 = GUICtrlCreateInput ("Text", 90, 20, 120, 20)$Text = GUICtrlRead(\$Input2) & @CRLF

qq

##### Share on other sites

Works perfectly, thx mate ...

## Create an account

Register a new account