Sign in to follow this  
Followers 0
myspacee

txt problem

2 posts in this topic

#1 ·  Posted (edited)

Hello to all,

i've a txt file with a lot of lines.

http://www.webalice.it/t.bavaro/Occasione.txt

lines contain strange symbol :

Posted Image

this symbol return in most txt editor as carrier return.

I want to eliminate that and replace Posted Image with nothing.

Don't know how identify it in AI and then replace,

Anyone can help me ?

Thank you,

m.

Edited by myspacee

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0