+ 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.
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.
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.
0
Can you give an example?