M
M
mr_firuzinho2018-11-29 19:26:11
Java
mr_firuzinho, 2018-11-29 19:26:11

How to process a file in which the data is in 1 line in Java?

Hello, I have a file that contains data that has the format: 7 "columns" of problems and other data, also 7 "columns", something like this:
2111 27 -52.354 -104.141 -16.806 2.800 | 2111 28 -31.338 -127.478 -15.259 2.800 ... Character
"|" not in the file, I set it to make it clear that the data for one object ends there. How do I count a certain number of characters from a file and represent it as one line and so on with all other data in Java? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Roo, 2018-11-29
@mr_firuzinho

If the file is not very large - read in one line, and then select portions according to the specified number of characters (Method substring)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question