TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Anwar Jabbar
NA
35
2k
FileNotFoundException unhandled error
Mar 3 2017 5:50 AM
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
Reply
Answers (
8
)
How to add IDs from DB to an Array
how to get Styles from existing word document by using Docx