Jump to content

Convert vertical colums of text to horizizontal line


sc0rpi0

Recommended Posts

I know this is a very strange question, but how would I go about converting a long line of vertical text to

a horizontal format using something like a batch file?

For example, I want to convert this:

a
b
c
d
e
f
g
h

...to this:

abcdefgh

Thanks very much.

Link to comment
Share on other sites

I know this is a very strange question, but how would I go about converting a long line of vertical text to

a horizontal format using something like a batch file?

For example, I want to convert this:

a
b
c
d
e
f
g
h

...to this:

abcdefgh

Thanks very much.

printr(trim($input,"\n"));?

Link to comment
Share on other sites

it's a bit of a broad question. you could do this in any language you want, but a batch file wouldnt be the output.

pseudobollocks

Open text file for reading/writing

Create empty string

Read each line of file, add onto end of string

Write string into file

Close File

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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