I have a general question: is it possible in Java to r开发者_JAVA技巧ead in a document e.g. by using a Scanner object and to locate/identify the page in which a word occurs?
maybe something similar to next()
, hasNextLine()
[EDIT]
document = Word document
What sort of document are you trying to read? Simple text files (which is what Scanner
is designed for) don't generally have the concept of pages. You can't use Scanner
for things like PDF and Word documents.
精彩评论