Data storage method? A bit stuck
Data storage method? A bit stuck
Data storage method? A bit stuck
Data storage method? A bit stuck
Data storage method? A bit stuck
Data storage method? A bit stuck Data storage method? A bit stuck Data storage method? A bit stuck Data storage method? A bit stuck Data storage method? A bit stuck Data storage method? A bit stuck Data storage method? A bit stuck Data storage method? A bit stuck
Data storage method? A bit stuck Data storage method? A bit stuck
Data storage method? A bit stuck
Go Back  Xtreme Visual Basic Talk > > > Data storage method? A bit stuck


Reply
 
Thread Tools Display Modes
  #1  
Old 02-06-2005, 06:23 AM
killerspam killerspam is offline
Newcomer
 
Join Date: Feb 2005
Posts: 1
Default Data storage method? A bit stuck


Hi guys,

I've been trying to figure a way to store and work with a set of data, and be able to save it to a file. As I'm quite new to vb.net, i'm looking for something that's not too complex.

I need to store data for multiple FTP sites, with information like servername, username, password, port. At the moment, i have a structure called ftpsites, with those said items. Then an array of type ftpsites.

I'm then sequentially on a line by line basis storing this information, and retrieving this info, looping through, on each loop adding 6 to an index. For instance,


Code:
For i = 0 to lines.count -1
ftpsites(i).servername = my_data_array(i + 1)
ftpsites(i).username = my_data_array(i + 2)
.......
i +=5
Next

Could anybody please suggest a better way of doing this, including storing the data? I am hoping to do all of this in a class, along with my other procedures.


Many thanks
Craig
Reply With Quote
  #2  
Old 02-12-2005, 01:07 PM
MKoslof's Avatar
MKoslofData storage method? A bit stuck MKoslof is offline
Cum Grano Salis

Retired Moderator
* Guru *
 
Join Date: Jul 2002
Location: Baltimore, Maryland
Posts: 14,636
Default

Honestly, if you need a complex, structured way to store data (based on conditions and other keys) a database table is probably your best bet
__________________
"Artificial Intelligence is no match for natural stupidity." ~unknown
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Data storage method? A bit stuck
Data storage method? A bit stuck
Data storage method? A bit stuck Data storage method? A bit stuck
Data storage method? A bit stuck
Data storage method? A bit stuck
Data storage method? A bit stuck Data storage method? A bit stuck Data storage method? A bit stuck Data storage method? A bit stuck Data storage method? A bit stuck Data storage method? A bit stuck Data storage method? A bit stuck
Data storage method? A bit stuck
Data storage method? A bit stuck
 
Data storage method? A bit stuck
Data storage method? A bit stuck
 
-->