how to replace 2 double quotes in a file
<p>I have 2 double quotes that need to be replaced by a single double quote.</p>

<p>I am using this method:</p>

<pre><code>private static void ReplaceTextInFile(string originalFile, string outputFile, string searchTerm, string replaceTerm)
{
    string tempLineValue;
    using (FileStream inputStream = File.OpenRead(originalFile))
    {
        using (StreamReader inputReader = new StreamReader(inputStream))
        {
            using (StreamWriter outputWriter = File.AppendText(outputFile))
            {
                while (null != (tempLineValue = inputReader.ReadLine()))
                {
                    outputWriter.WriteLine(tempLineValue.Replace(searchTerm, replaceTerm));
                }
            }
        }
    }
}
</code></pre>

<p>and calling it this way</p>

<pre><code>ReplaceTextInFile(file, file + "new", (char)34 + (char)34, (char)34);
</code></pre>

<p>the error i am getting is</p>

<pre><code>Error   4   Argument '3': cannot convert from 'int' to 'string' 

and  Error  5   Argument '4': cannot convert from 'char' to 'string'    
</code></pre>

<p>what am i doing wrong?</p>
