mirror of
https://github.com/ZhigalskiiIvan/TextStatisticsProject.git
synced 2024-11-22 07:11:52 +03:00
fixed mistake in reading from file method
This commit is contained in:
parent
bfcb7a1483
commit
ef7b49b301
@ -176,6 +176,7 @@ object TextReader {
|
|||||||
println("Input a name of a text:")
|
println("Input a name of a text:")
|
||||||
val name = readln()
|
val name = readln()
|
||||||
|
|
||||||
|
println("Input path to file:")
|
||||||
val contentsFile: File
|
val contentsFile: File
|
||||||
|
|
||||||
pathReadCycle@ while (true) {
|
pathReadCycle@ while (true) {
|
||||||
@ -436,8 +437,8 @@ class ReturnException : Exception() {
|
|||||||
|
|
||||||
class InvalidInputTypeException : Exception() {
|
class InvalidInputTypeException : Exception() {
|
||||||
/**
|
/**
|
||||||
* Custom exception being thrown if input can't be converted
|
* Custom exception being thrown if input can't be converted
|
||||||
* to the requested type.
|
* to the requested type.
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user