I have a huge .txt file and format is like below:
29 clueweb12-1500wb-39-00001
19 clueweb12-1500wb-39-00002
20 clueweb12-1500wb-39-00003
I need to read that file line by line and separate two parts. The first part has scores(29,19,20) and the second part is docIds (clueweb12-1500wb-39-00001). I read to txt file line by line by using stream but how can i put these two parts in a String?
Stream<String> lines = File.lines(Paths.get("path-to-file");
lines.forEach(s -> s.split(" "));
`