Hey guys

I want to make a txt-file-based database as an item database for my project.

the database looks like this

Code:
1,Potion,8,0,0,0,4,0,0,2,0,0,0,2,40,
2,Remedy,8,0,0,0,4,0,0,2,0,0,0,2,60,
...



and so on.

The Problem is, that I'm not able to determine in which line the text cursor might be, and I'm also not able to place the cursor to a specific line. I tried a lot of things with file_seek, file_find and file_str_read but it doesn't work at all.

is there a way to specify the line in which the cursor in the txt file is or does anyone have a good solution for achieving this?

thanks in advance
Roxas

Last edited by Roxas; 12/31/10 12:26.