Question: ```
import java.io.*;
class demo
{
public static void main(String str[]) throws Exception
{
     Process p = Runtime.getRuntime().exec("wget -P C:\vignesh\Docx\docx_final\Html2Docx\src http://anbu/upload/ExportHtml.html");
     p.destroy();
}
}

```

Hi all,

I want to copy a file from URL to my folder(src). I tried through java, i got error illegal escape character. but the above wget works in command prompt. Please help me..Thanks in advance.

Answer: 
How about:

```
    public double? GetVolume(object data)
    {
        double value;
        if (data != null && double.TryParse(data.ToString(), out value))
            return value;
        return null;
    }

    public void Assign(DataRow theRowInput, DataRow theRowOutput)
    {
        theRowOutput[0] = (object)GetVolume(theRowInput[0]) ?? DBNull.Value;
    }

```
What about something simple like this:

```
double dbl;
if (double.TryParse(theRowInput[0] as string, out dbl))
    theRowOutput[0] = dbl;
else
    theRowOutput[0] = DbNull.Value;

```

**EDIT:** This code assumes the input is of type string. You weren't 100% clear there. If it was another type, the code above would need to be tweaked slightly.