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 GuptaPosted Mar 3, 2017, 6:46 AM
Anwar JabbarPosted Mar 3, 2017, 10:06 AM
Amit GuptaPosted Mar 3, 2017, 6:51 AM
Anwar JabbarPosted Mar 3, 2017, 6:32 AM
Amit GuptaPosted Mar 3, 2017, 6:14 AM
Anwar JabbarPosted Mar 3, 2017, 6:05 AM
Amit GuptaPosted Mar 3, 2017, 5:59 AM
Amit GuptaPosted Mar 3, 2017, 5:56 AM