Is it possible to use the solution to this question for Microsoft Word files that are large?
In other words, will the following code work if I replace "file.txt" below with "file.doc" ?
final InputStream in = new BufferedInputStream(new FileInputStream("file.txt"));
final long start = System.currentTimeMillis();
int cnt = 0;
final byte[] buf = new byte[1000];
while (in.read(buf) != -1) cnt++;
in.close();
System.out.println("Elapsed " + (System.currentTimeMillis() - start) + " ms");