Jump to content

multiple lines into one


Recommended Posts

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 :shocked:

Link to comment
Share on other sites

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 by JohnBailey
A decision is a powerful thing
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...