Read data from txt file into array

Login to reply to this topic.
Wed, 2008-05-07 11:31
Joined: 2008-04-14
Forum posts: 13

I am using TFileText to read data from txt(Unicode) file line by line and I need to save them into an array.
The structure of the txt file is as follows:

Index, attribute1, attribute2

The real contexts are:

-1 12 1
-23 14 14
...

I need to save them in an arra, because I will receive some hex data

for example:

0x31

I need to search the array to find the 1 that 0x31 represents. So the question is what type of array shall i use and what the type of the element of that array shall i declare.

Anyone can help?


Wed, 2008-05-07 12:03
Joined: 2008-04-14
Forum posts: 13
Re: Read data from txt file into array

Well, stupid question. I can just use the descriptor that contains the data from the txt file.

  • Login to reply to this topic.