select line in file
#1

Hello,

I would like to know how we can write on the line I want.
For exemple, I want to write in the line 4
There is my file:

Код:
1,555,2759.152343,-2428.122314,13.506920,82,1,1,Aucun proprietaire,Aucun nom,5000,,0,0
2,555,2759.152343,-2428.122314,13.506920,82,1,1,Aucun proprietaire,Aucun nom,5000,,0,0
3,555,2759.152343,-2428.122314,13.506920,82,1,1,Aucun proprietaire,Aucun nom,5000,,0,0
4,555,2759.152343,-2428.122314,13.506920,82,1,1,Aucun proprietaire,Aucun nom,5000,,0,0
5,555,2759.152343,-2428.122314,13.506920,82,1,1,Aucun proprietaire,Aucun nom,5000,,0,0
6,555,2759.152343,-2428.122314,13.506920,82,1,1,Aucun proprietaire,Aucun nom,5000,,0,0
So, make this:
http://pastebin.com/PU2xmP5D

Normally, the programm write on the line who matching the ID of the vehicle (here, 4)

But; nothing...

Regards
Reply
#2

You should probably move your system over to SQL (can be SQLite, doesn't have to be MySQL). It seems you've already grasped the concept of assigning each line a unique identifier.
Reply
#3

It's not possible to do this with files ?
Reply
#4

Its possible but we need more code
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)