Solved

Replace " from text file

Posted on 2007-04-06
5
175 Views
Last Modified: 2010-04-23
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(“””, “”)
0
Comment
Question by:gr8life
  • 3
5 Comments
 
LVL 35

Expert Comment

by:YZlat
ID: 18867286
is filetext a sting?
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 18867287
please try this:
Filetext = filetext.Replace(@"""", String.Empty )
0
 
LVL 35

Expert Comment

by:YZlat
ID: 18867295
try

filetext = filetext.Replace(Chr(34), "")
0
 
LVL 35

Accepted Solution

by:
YZlat earned 500 total points
ID: 18867303
also try

filetext = Replace(filetext, chr(34), "")
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 18867929
In my opinion, a combination of them both is the most readable:

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

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now