Gnat Posted August 24, 2005 Share Posted August 24, 2005 Is there a way to use the edit field with the edit style of $ES_WANTRETURN, and then take that text and write it to a text file, so that when you read it back, the @CRLF does not cause the data to be read as multiple lines. Can the @CRLF be replaced by some misc. character when written to the file (FileWriteLine), and then written back when read back from the file (FileReadLine)? Link to comment Share on other sites More sharing options...
phillip123adams Posted August 24, 2005 Share Posted August 24, 2005 Can the @CRLF be replaced by some misc. character when written to the file (FileWriteLine), and then written back when read back from the file (FileReadLine)?<{POST_SNAPBACK}>Do you mean?FileWriteLine($filehandle, StringTrimRight($sMyString, 1))Then$sMyString = FileReadLine($filehandle) & @CRLF Phillip Link to comment Share on other sites More sharing options...
Gigglestick Posted August 24, 2005 Share Posted August 24, 2005 Can the @CRLF be replaced by some misc. character when written to the file (FileWriteLine), and then written back when read back from the file (FileReadLine)?FileWriteLine($file, StringReplace($line, @CRLF, "~")) $line = StringReplace(FileReadLine($file), "~", @CRLF) My UDFs: ExitCodes Link to comment Share on other sites More sharing options...
Gigglestick Posted August 24, 2005 Share Posted August 24, 2005 FileWriteLine($filehandle, StringTrimRight($sMyString, 1))This would only remove the last @CRLF, not the ones in the middle of the text. My UDFs: ExitCodes Link to comment Share on other sites More sharing options...
w0uter Posted August 24, 2005 Share Posted August 24, 2005 you should use a weird series of characters. (ex. "sg&6$f" ) else maby someone would type ~ and then there is a @CRLF where it shouldnt be. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
Gnat Posted August 25, 2005 Author Share Posted August 25, 2005 Thank you c0deWorm, that worked perfectly! 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