+ 2

How to use txt file as a database?

Hello everyone! I want to know how to write and read text files and how to use it as a database. For example, the code must retrive text and extract only required data.

10th Sep 2016, 5:51 PM
Ilyosjon Kamoldinov
Ilyosjon Kamoldinov - avatar
3 ответов
+ 1
for example: in your text file: Dog Cat Cow Fox if you need to get the cat, you just have to get the Line2. Ignoring all the remaining Lines.
11th Sep 2016, 7:38 PM
Erwin Mesias
Erwin Mesias - avatar
0
You can't get specific data on a text file like just by using a keyword or something. All you can do is separate your data into separate lines and get the specific line you need.
11th Sep 2016, 7:26 PM
Erwin Mesias
Erwin Mesias - avatar
0
Can you give an example?
11th Sep 2016, 7:34 PM
Ilyosjon Kamoldinov
Ilyosjon Kamoldinov - avatar