You are viewing our Forum Archives. To view or take place in current topics click here.

Which GTA story is the best?

San Andreas
50.00% (2 votes)
Vice city
0.00% (0 votes)
Liberty city
0.00% (0 votes)
GTA V story
50.00% (2 votes)

Total Votes: 4

Help needed in coding
Posted:

Help needed in codingPosted:

Aztec99
  • New Member
Status: Offline
Joined: May 03, 20159Year Member
Posts: 1
Reputation Power: 0
Status: Offline
Joined: May 03, 20159Year Member
Posts: 1
Reputation Power: 0
I want to add many data into one file. Example: An telephone directory in which I would be able to enter many data and store them and recall them using an profile ID.

Can you tell me how to add many data in one file?
and how to generate profile ID for each information input?
#2. Posted:
-Deano
  • PC Master Race
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
One of the simplest ways would be to use a single text file.
Separate the items by comma and each new record with a new line.

e.g

Person1,1 Avenue Road,QQ11QQ,01234567890
Person1,2 Avenue Road,QQ11QQ,01234567891
#3. Posted:
Skittle
  • TTG Commander
Status: Offline
Joined: Aug 20, 201410Year Member
Posts: 6,813
Reputation Power: 413
Status: Offline
Joined: Aug 20, 201410Year Member
Posts: 6,813
Reputation Power: 413
The above suggestion will work perfectly fine for your need, although you could look into writing XML files to combat your task.

Example:
<TelephoneDirectory>
    <Entry>
        <ID>1</ID>
        <TelephoneNumber>01234 567890</TelephoneNumber>
    </Entry>
    <Entry>
        <!-- You get the idea -->
    </Entry>
</TelephoneDirectory>


If you need any further help feel free to PM me!
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.