Assign an array to an open file dialog -- please help!
How do you assign an array that will reference a streamreader, named ofdMain. I then need to be able to reference the first, second, and third lines in the array to be able to format them a certain way. Note that there is only one field with in each line and isn't seperated by a Delimiter.
Sorry I can't be more specific but I'm new to VB.Net and any help would be welcome.
Originally posted by Pirate ummm , I don't know what you mean .Can you explain a little more??
Oh , I see your question is about StreamReader .I thought you are talking about BinaryReader .Anyways , I've not worked on that but I may give it a try !
Public Class frmMain
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim streamRd As StreamReader = File.OpenText("c:\test.txt")
Dim arry() As String
Thanks, that worked thoght I did something similar to that. I was hopeing to be able to open up a letter such as the one you saw, but perhaps with more or less lines so I declared it using a array with no initial value......to bad that wont work