myspacee Posted May 29, 2010 Share Posted May 29, 2010 (edited) Hello to all,i've a txt file with a lot of lines.http://www.webalice.it/t.bavaro/Occasione.txtlines contain strange symbol :this symbol return in most txt editor as carrier return.I want to eliminate that and replace with nothing.Don't know how identify it in AI and then replace,Anyone can help me ?Thank you,m. Edited May 29, 2010 by myspacee Link to comment Share on other sites More sharing options...
myspacee Posted May 29, 2010 Author Share Posted May 29, 2010 solved with: $file = FileOpen("Occasione.txt", 0) ; Check if file opened for reading OK If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") Exit EndIf ; Read in 1 character at a time until the EOF is reached While 1 $chars = FileRead($file) If @error = -1 Then ExitLoop $new_chars = StringReplace($chars, @cr & "<@tel:>", " ") MsgBox(0, "Char read:", $new_chars) Wend FileClose($file) m. 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