This is what I have but it is not reading the file. If I hard code a value for tmp it works perfectly!
public void TextToDB() throws Exception
{
//Create text file objects.
String ProductId_Hold;
String ProductDesc_Hold;
String QtyOnHand_Hold;
String QtyOrd_Hold;
String ExtPrice_Hold;
String UnitPrice_Hold;
ProductId_Hold = "";
ProductDesc_Hold= "";
QtyOnHand_Hold= "";
QtyOrd_Hold= "";
ExtPrice_Hold= "";
UnitPrice_Hold= "";
lblMessage.setText("Before Try"

;
try
{
StringBuffer data = new StringBuffer();
BufferedReader reader = new BufferedReader(new FileReader(new File("DBFile.dat"

));
String tmp = reader.readLine();
while(tmp != null)
{
lblMessage.setText("1St While"

;
StringTokenizer strTok = new StringTokenizer(tmp,"|"

;
//Saving the data into the StringBuffer
//You don't have to do this, it dependes
//on what you want to to with your data
while(strTok.hasMoreTokens())
{
lblMessage.setText("2nd While"

;
ProductId_Hold = strTok.nextToken();
ProductDesc_Hold= strTok.nextToken();
QtyOnHand_Hold= strTok.nextToken();
QtyOrd_Hold= strTok.nextToken();
UnitPrice_Hold= strTok.nextToken();
ExtPrice_Hold= strTok.nextToken();
cmdProduct.executeUpdate("Insert Into Product "
+ "([ProductID], [ProductDesc], [QtyOnHand], [QtyOrd], [UnitPrice], [extPrice] ) "
+ "Values('"
+ ProductId_Hold + "', '"
+ ProductDesc_Hold + "', '"
+ QtyOnHand_Hold + "', '"
+ QtyOrd_Hold + "', '"
+ UnitPrice_Hold + "', '"
+ ExtPrice_Hold + "')"

;
//Add to name list
lblMessage.setText("Import Sucessful"

;
}
tmp = reader.readLine();
lblMessage.setText("TMP"

;
}
}
catch(SQLException error)
{
lblMessage.setText("Error during Edit. " + "Error: " + error.toString());
}
catch(Exception error)
{
lblMessage.setText("Error during Edit. " + "Error: " + error.toString());
}
}