Jump to content

How can I replace double quotes (") characters?


kempo
 Share

Recommended Posts

I need to remove double quotes characers in a text file but, I could not succeeded.

I am using stringreplace function but it does not work correctly. My replacement code is as follows:

$line = FileReadLine("C:\kurlar.csv",1)

$text = StringReplace($line, """, ''")

The script gives error of "Unterminated string" and does not remove the quotes.

How can I solve this problem.?

Link to comment
Share on other sites

How can I solve this problem.?

The great Zedna (who should be an MVP imo) gave you the right answer. But in the slight chance you don't see or understand it, Zedna used single quotes around 1 double quote. The double quote is what you want replaced. Autoit supports the use of single and double quotes as outlined in the Help file, but depending on the situation or personal preference, single quotes are the way to go.

Nice 1st post btw, nicely explained, has a good subject line, and even included some code. :)

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...