> > i must create an string array to save a record of a txt file.... the
> > number of record is't the same...
[quoted text clipped - 6 lines]
>
> Jon
> > It would help if you could give a bit more information. Is there any
> > reason why you need to use an array instead of a List<string> which
[quoted text clipped - 4 lines]
> different person; in the record there are some information like
> 'name', 'phone','address' and any other...
Okay - and how are those stored?
> i create a class that import a file and save a single information of
> record in a different place of array.when all information of one
> record is saved, i must write a new file with part of this
> information. All of operation, are in a "FOR" loop or cycle( i don't
> now which word is better )
> can you understand?
Well, it sounds like a List<Person> will be fine.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Piero - 04 Mar 2008 14:47 GMT
> > > It would help if you could give a bit more information. Is there any
> > > reason why you need to use an array instead of a List<string> which
[quoted text clipped - 19 lines]
> Jon Skeet - <sk...@pobox.com>http://www.pobox.com/~skeet Blog:http://www.msmvps.com/jon.skeet
> World class .NET training in the UK:http://iterativetraining.co.uk
the file are stored in c:\Test
then, you think that i must use a ListArray and not Array to
"increase" the performance?
thanks
Jon Skeet [C# MVP] - 04 Mar 2008 15:07 GMT
> the file are stored in c:\Test
That's *where* they're stored - I was asking about *how* the data is
stored, i.e. the format.
> then, you think that i must use a ListArray and not Array to
> "increase" the performance?
No, I think you should use a List<string> (or ArrayList, or something
similar) rather than an array so that you don't need to know how many
items to create before you start.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Piero - 04 Mar 2008 16:23 GMT
> > the file are stored in c:\Test
>
[quoted text clipped - 11 lines]
> Jon Skeet - <sk...@pobox.com>http://www.pobox.com/~skeet Blog:http://www.msmvps.com/jon.skeet
> World class .NET training in the UK:http://iterativetraining.co.uk
ok, Jon thanks a lot!!
bye!