Write it as File.Open(@"c:\temp.ext") where temp.ext is the actual file path.