Link to home
Start Free TrialLog in
Avatar of gr8life
gr8life

asked on

Replace " from text file

I’m trying to remove all “ (the double quote characters), but I am getting this error:
“overload resolution failed because no accessible  ‘Replace’ accepts this number of arguments.

Thank you for your time and expertise,
Gr8life

Source code:

Filetext = filetext.Replace(“””, “”)
Avatar of YZlat
YZlat
Flag of United States of America image

is filetext a sting?
please try this:
Filetext = filetext.Replace(@"""", String.Empty )
try

filetext = filetext.Replace(Chr(34), "")
ASKER CERTIFIED SOLUTION
Avatar of YZlat
YZlat
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
In my opinion, a combination of them both is the most readable:

        filetext = filetext.Replace(Chr(34), String.Empty)