iam creating an app for a handheld with windows embedded handheld 6.5, iam stuck with reading the content of text file and loading into a string. the file is tab delimeted with 3 columns (barcode, desc, price).the code will be executed on form load, i have written the below using c# on vb2005 releasing on windows 6 classic emulator, but the streamreader is always null. i have written the below please any advices, i appreciate the help!
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
private void Form1_Load(object sender, EventArgs e)
{
string fileloc = "fileexample.txt";
StreamReader sr = new StreamReader(fileloc);
string s = sr.ReadToEnd();
}