Dear Friends,
Kindly assist on the below
I am making program in Visual Studio 2008 C# for Windows CE 6 device (datalogic memor).
Trying to read data from a CSV file using below code
using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.IO;
using System.Windows.Forms;
private void cmdDataRefresh_Click(object sender, EventArgs e)
{
if (!File.Exists(@"d:\\SampleSale.csv"))
{
Console.WriteLine("{0} not exist.");
}
StreamReader reader = new StreamReader(File.OpenRead(@"SampleSale.csv"));
}But i get an error while running the code at the line StreamReader
Can you help on this? how to specify the file with path and why this error comes up?
Thanks

Amit GuptaRank #190 · 12.8K reputationPosted Mar 3, 2017, 1:46 AM EST
Amit GuptaRank #190 · 12.8K reputationPosted Mar 3, 2017, 12:56 AM EST
Amit GuptaRank #190 · 12.8K reputationPosted Mar 3, 2017, 1:14 AM EST
Amit GuptaRank #190 · 12.8K reputationPosted Mar 3, 2017, 1:51 AM EST
Amit GuptaRank #190 · 12.8K reputationPosted Mar 3, 2017, 12:59 AM EST
Anwar Jabbar32 reputationPosted Mar 3, 2017, 1:05 AM EST
Anwar Jabbar32 reputationPosted Mar 3, 2017, 1:32 AM EST
Anwar Jabbar32 reputationPosted Mar 3, 2017, 5:06 AM EST