kempo Posted September 14, 2007 Share Posted September 14, 2007 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 More sharing options...
Zedna Posted September 14, 2007 Share Posted September 14, 2007 $text = StringReplace($line, '"', '') dickjones007 and robertocm 2 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
ssubirias3 Posted September 15, 2007 Share Posted September 15, 2007 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 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