|
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.
|