File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
I/O and Streams
Junk value when converting .doc t .txt file
Joined: Apr 22, 2008
Apr 25, 2008 03:24:00
public static void main(
file = new File("C:/read1.doc");
fis = new
byte bytes = new byte[fis.available()];
System.out.println("Hello World! "+bytes.length);
i am converting
to txt file.The file is getting created.The value which i am redaing junk
Can Any one Help me Please
Joined: Mar 22, 2005
Apr 25, 2008 04:20:00
This code isn't converting anything. It's reading a file, and storing it with a different extension.
It's rather hard to read -and make sense- of DOC files. If all you want to do is extract text from DOC files, then the
library can do that.
Alternatively, OpenOffice has a
API that you can use; the
library makes it easier to use that to convert between file formats.
I agree. Here's the link:
subject: Junk value when converting .doc t .txt file
need to generate RSA keys from txt files
Reading two files and Writing into another single file
Merging byte arrays using SequenceInputStream
file is empty, will fail
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015