CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2013
    Posts
    1

    [RESOLVED] FilestreamReader Help

    Hi
    I am a complete novice to Visual basic. I am trying to read a text file and input the data into a array for further calculations. Any Ideas??

    filestreamReader = IO.File.OpenText("Cxxx.txt")

    Do While Not filestreamReader.EndOfStream

    lineIn = filestreamReader.ReadLine

    Process??

    Loop

  2. #2
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: [RESOLVED] FilestreamReader Help

    Hard to say without more info, perhaps the readalllines method will do what you want. It basically reads the file into an array with each line in its own element. If you want to break it up some other way then need to know the file structure first.
    Always use [code][/code] tags when posting code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured