Google Answers Logo
View Question
 
Q: Arrays & Reading Text Files in VB.NET/ASP.NET ( No Answer,   1 Comment )
Question  
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.).
Answer  
There is no answer at this time.

Comments  
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

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

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 Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy