|
ÿÿ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¤ ¸ ( ¸ å ¶ @ @ @ @ @ @ @ @ d f f f f f f $ › h b Š ¤
weird characters like this, try opening word file wid notepad, u'll see small boxes
my code basically opens 2 files(one doc n other xls) as bufferedreader n bufferedwriter respectivel, n using readLine i read from doc n write() to xls
String s1="C:\\"+ft.getText()+".txt"; //Address of the doc file
String s2="C:\\"+ft.getText()+".xls";
BufferedReader fileIn = new BufferedReader(new FileReader(s1));
View view = new View();
String line;
while((line=fileIn.readLine())!=null)
{
view.setEntry(i,0,line);
i++;
view.write(s2,View.eFileExcel);
|