0

Save data in file

What is the best way to use a file like a database in java?

3rd Apr 2020, 9:15 PM
hamid
hamid - avatar
3 Answers
+ 1
yes you can use XMLEncoder (to write) and XMLDecoder (to read) in java https://youtu.be/H-aTpt4NG-s
4th Apr 2020, 7:21 PM
Bryar Ahmed
Bryar Ahmed - avatar
+ 1
XML file is the best , but if you mean text file you can use folders like table and use text files like records (rows) and use text files' content like attribute data (column data)
4th Apr 2020, 2:21 AM
Bryar Ahmed
Bryar Ahmed - avatar
0
can save objects in xml files?
4th Apr 2020, 10:56 AM
hamid
hamid - avatar