![]() |
|
|
| Subject:
Arrays & Reading Text Files in VB.NET/ASP.NET
Category: Computers > Programming Asked by: decryption-ga List Price: $5.00 |
Posted:
02 Apr 2006 06:41 PDT
Expires: 02 Apr 2006 15:03 PDT Question ID: 714587 |
I have a text file with some data in it. I want to insert each line of
that data into an array. E.g:
Dim Quote(10) As String
Quote(0)="CompanyName"
Quote(1)="CompanyAddress"
Quote(2)="CompanyContactName"
Quote(3)="CompanyPhone"
Quote(4)="CompanyContactEmail"
Quote(5)="NumberOfPages"
Quote(6)="Encryption"
Quote(7)="ImagesPerPage"
Quote(8)="DatabaseTables"
Quote(9)="DomainName"
Dim TextStream as New StreamReader(Server.MapPath("quote1.txt"))
Dim CurrentLine as String = TextStream.ReadLine()
Do While Not CurrentLine is Nothing
Loop
And that's all I could come up with :( How would I construct a loop
that would go through a text file and put each line into the array.
(line 1 into array item 1, line 2 into array item 2, etc.). |
|
| There is no answer at this time. |
|
| Subject:
Re: Arrays & Reading Text Files in VB.NET/ASP.NET
From: jiangsheng-ga on 02 Apr 2006 10:50 PDT |
http://support.microsoft.com/kb/302309 |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
| Search Google Answers for |
| Google Home - Answers FAQ - Terms of Service - Privacy Policy |