View Single Post
  #9 (permalink)  
Old 04-22-2008, 02:51 PM
jazz2k8's Avatar
jazz2k8 jazz2k8 is offline
Senior Member
 
Join Date: Apr 2008
Posts: 113
jazz2k8 is on a distinguished road
Here i am attaching my cde and the text please have a look into this issue.
One more thing in the above two funtions the code is same as follows
----------------------------------------------------
BufferedReader in=new BufferedReader(new FileReader ("D:\\jazz\\CSV\\abcd.txt"));
StringBuffer sb=new StringBuffer();
String line;
line=in.readLine();

while(line!=null){
sb=sb.append(line);
line=in.readLine();
}

String line1=sb.toString();
System.out.println(line1);
}
----------------------------------------------
Can i declare it as global??

if i ran the attached code iam getting errors.
Attached Files
File Type: zip java.zip (1.4 KB, 3 views)
Reply With Quote