Home > Back-end >  Java read dat file strings
Java read dat file strings

Time:05-24

Consult everybody masters a problem, the original data file is to use dat form, the file number uncertainty, using BufferedReader to read, read, string segmentation split, and then passed to the page, please read the what is the mode of storage, using an array of strings? What is the mode of convenient store to display segmentation after use? Thank you
File name: factory electric torque wrench force word no. 20210501317, 887000031 certificate on the 2021-5-31. The dat
88935, DFPV200906LX00504, factories, electric torque spanner, electric torque spanner, Exact6, 4 nm, 10, Germany Bosch, 887000031, 10 class, zhang SAN, li si, 0, 0, calibration certificate, the word no. 20210501317, 2021-5-31, 12202, 2-5-30,20.1 50.8, the unit measuring room,
Torque sensor, IRTT5A level - 106, 1, 43060376202, 18/1/6,,,,,,,,,,,,,,, JJF1610-2017 "electric, pneumatic torque wrench calibration specifications",,
General technical requirements,,
Qualified,,
4,4.051, 4.132, 4.112, 4.072, 4.121, 4.076, 4.120, 4.080, 4.109, 4.096, 4.097, 0.097, 2.4, 0.081, 2.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

CodePudding user response:

Define a class, and you finally to return to the interface of the object is consistent, each time you read to this object assignment, will ultimately be the List Back, your side don't need to do to store, if you want to store first saved to the database, interface directly to the library

CodePudding user response:

Is there a similar procedure for your reference

CodePudding user response:

You this file format is so clear, as read, don't read in a line according to the comma split String array, each String array into a List
  • Related