Read text file in java

后端 未结 5 2093
礼貌的吻别
礼貌的吻别 2020-12-12 00:00

Hey, I need to read a textfile in java. The problem is that the file has the following format:

Id time1 time2 time3 ...
ID2 time1 time2 time3 ...
         


        
5条回答
  •  醉话见心
    2020-12-12 00:12

    Transpose the file. Ids on line 1, time1 on line 2, and so on. Of course, this is beneficial if this can be done only once and then many reads on that file are expected.

提交回复
热议问题