Jump to content

Removing newline from a file


 Share

Recommended Posts

  • Developers

Ouch.. I made a dupe by mistake..

How do I delete a post?

second is gone ... maybe the wrong one ?

Just edit this one if needed ..

:rolleyes:

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

lol dude that is not cool!

$temp = FileOpen("small.xml", 0)
$body = FileRead($temp)
FileClose($temp)
$body = StringReplace($body, "<", "{^}<")
$body = StringReplace($body, ">", "{^}>")
$body = StringReplace($body, "@LF", "")         
$body = StringReplace($body, "@CF", "")         
$body = StringReplace($body, "@CFLF", "")           
Send("echo "&$body&" > test.xml{ENTER}")

Does anyone know why newlines are not being removed?

I'm trying to read a local file and create a copy at a remote machine that's connected via telnet.

Unfortunately ftp and other options aren't available. Just me and my best friend telnet.

Edited by CSP
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...