get the error after it compiles and befor the form shows up.
my code looks like this:
private
void Form5_Load (Object sender, System.EventArgs e)throws Exception{
int here = 0;
for (int NumberOfStudents=0; NumberOfStudents<2500;NumberOfStudents++)
{
BufferedReader Stuff = new BufferedReader(new FileReader("SampleData.txt"));
String LastFirstID = new String();
String LastName = "";
for (int part2 = 0; part2 < 2500; part2++)
{
for (int part1 = 0; part1 < 2500; part1++)
{
LastFirstID = Stuff.readLine();
for (here = 0; here < LastFirstID.length(); here++)
{
while (LastFirstID.charAt(here) != ',')
{
LastName = LastName + LastFirstID.charAt(here);
if (LastFirstID.charAt(here) == ',');
{
break;
}
}
}
Students[part1][part2] = LastName;
}
}
}
}
I know my code is not complete but the error is not with the code not being complete it is with the BufferedReader and when I throw the Exception. If I do not throw the Exception the BufferedReader does not work.
Can anyone help me.
The error message reads as follows:
An unhandled exception of type 'java.io.FileNotFoundException' occurred in vjslib.dll
Additional information: C:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\WindowsApplication1\bin\Release\SampleData.txt

An unhandled exception of type 'java.io.FileNotFoundException' occurred in vjslib.dll
rogertan
FileNotFoundException occurs when you attempt to open a file and it doesn't exist.
In your case it cannot find the 'SampleData.txt' file, you need to make sure it exists before trying to open it.
Muhammad Khaliiq Azhar
If the 'SampleData.txt' file is not in the current working directory, try using absolute path of the file.
Thanks,