sc0rpi0 Posted May 10, 2008 Share Posted May 10, 2008 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. Quote Link to comment Share on other sites More sharing options...
Sparda Posted May 10, 2008 Share Posted May 10, 2008 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"));? Quote Link to comment Share on other sites More sharing options...
Rab Posted May 10, 2008 Share Posted May 10, 2008 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.