P
P
PlagueStarScream2017-09-12 11:00:25
Java
PlagueStarScream, 2017-09-12 11:00:25

How is it possible to access files on disk through Java?

There is a task, you need to write a program to search for a given text in log files. From which only 2 questions arise for you:
1) How can I display or access my own disk
2) It should be possible to enter the search text and enter the type of file extension in which the search will be performed (default extension * .log).
I don’t ask you to write code for me or give ready-made options, just direct me in the right direction and what components to use to achieve the goal. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2017-09-12
@PlagueStarScream

Use classes from the java.io or java.nio package .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question