Answer the question
In order to leave comments, you need to log in
How to edit a text file?
The essence of the question is how to edit a text file located in resources, what construction to use for this (that is, reading lines, editing lines, deleting lines and outputting lines)
Answer the question
In order to leave comments, you need to log in
Standard input and output.
Set the file name as: "имя_папки\\имя_файла",
that is: "resources\\file.txt"
(the separator depends on your system)
Here is a link to working with text files in Java SE 8.
We are interested in the Working with Files item. Previous versions, I think, you will find yourself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question