Answer the question
In order to leave comments, you need to log in
Array of String args[]?
I run the program with command line arguments, the first 3 elements of the args array are the data type, sorting mode, and the output file
is the 4th element of the args array, and then (if any) these are the names of the files (input files) from where you need to take the data
So, I'm trying put in the list of elements, the data of the input files
try {
BufferedReader reader = new BufferedReader(new FileReader(args[3]));
while (reader.ready()) {
rawData.add(reader.readLine());
}
} catch (FileNotFoundException e) {
System.out.println("Входной файл с таким именем не найден!" + exit);
} catch (IOException e) {
System.out.println("Ошибка чтения входных данных");
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question