blizzedout Posted April 13, 2007 Share Posted April 13, 2007 How do i make 10 lines into one line of text? Link to comment Share on other sites More sharing options...
BrettF Posted April 13, 2007 Share Posted April 13, 2007 How do i make 10 lines into one line of text? Um.... This worked for me: $file = FileOpen (@ScriptDir & "\Test.txt", 0) $lines = FileRead ($file) MsgBox (0, "10 Lines:", "Lines:" & @CRLF & $lines) $result = StringStripWS ($lines, 8) MsgBox (0, "10 Lines:", "Result:" & $result) Test.txt contained: 11 22 33 44 55 66 77 88 99 1010 Hope it helps Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Helge Posted April 13, 2007 Share Posted April 13, 2007 (edited) Maybe...MsgBox(64, "", "Line 1" & @CRLF & "Line 2")oÝ÷ Øêâ~Ø^Ëkz·¥¢x2¢çëÞÚ,¢g)à)¶¬jëh×6MsgBox(64, "", _ "Line 1" & @CRLF & _ "Line 2" & @CRLF & _ "Line 3" & @CRLF & _ "Line 4")Edit : Not exactly too many details in your post though, blizzedout... Edited April 13, 2007 by Helge Link to comment Share on other sites More sharing options...
JohnBailey Posted April 13, 2007 Share Posted April 13, 2007 (edited) I agree with Helge, there was not too much info in the original question. Lines of what? You can also do things like $singleLine = $line1 & $line2 & $line3 oÝ÷ ÚÚºÚ"µÍÌÍÛ[LH [ÏH ÌÍÛ[L Good example bert Edit: corrected AUI3 script synax (thanks JdeB) Edited April 13, 2007 by JohnBailey A decision is a powerful thing Link to comment Share on other sites More sharing options...
Developers Jos Posted April 13, 2007 Developers Share Posted April 13, 2007 $line1 += $line2oÝ÷ Ûú®¢×¹ë,ʦy©ÚºÚ"µÍÌÍÛ[LH [ÏH ÌÍÛ[L SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
JohnBailey Posted April 13, 2007 Share Posted April 13, 2007 HAHA! JdeB, thanks! That was bound to happen. That's what you get when you're scripting in different languages and platforms all day. JdeB, you're right. That's what I meant. I corrected my mistake above so nobody will be confused. haha thanks again for catching that. A decision is a powerful thing Link to comment Share on other sites More sharing options...
xcal Posted April 13, 2007 Share Posted April 13, 2007 Or $return = StringReplace($file, @CRLF, ' ') How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
JohnBailey Posted April 16, 2007 Share Posted April 16, 2007 Or $return = StringReplace($file, @CRLF, ' ')ooo xcal I like that! I never thought to use StringReplace that way before. Nice A decision is a powerful thing 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