This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Bufferedreader error issue  RSS feed

 
Eung maeng
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
would you be able to explain what's problem in ?

I am trying to reade txt file with Bufferedreader. However, I am getting a compile error.
e.g
public String writeXML()
{
StringBuffer sb = new StringBuffer("<?xml version = \"1.0\" ?>" + nextLine);
sb.append("<resultset>" + nextLine);

///////////////////////////////////////////////
///Retrive the Configuration from Config03.dat/
///////////////////////////////////////////////
try{
File vertexF = new File("vertex.txt");
BufferedReader reader = new BufferedReader(new FileReader(vertexF));

String s;
int cntRead=0;
}catch(IOException e)
{
// e.printStackTrace();

}

thanks for your reply earlier,
 
Campbell Ritchie
Sheriff
Posts: 55350
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please provide more details. What sort of compiler error are you getting?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!