Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
8
Answers
FileNotFoundException unhandled error
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Anwar Jabbar
7y
222
1
Reply
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
Post
Reset
Cancel
Answers (
8
)
Next Recommended Forum
create web service with basic authentication c#
how to get Styles from existing word document by using Docx