none
Need help with reading lines from a text file RRS feed

  • Question

  • Here is the text file contents

    Harry Potter

    1999

    2hr 30m

    PG-13

    Hunger Games 

    2012

    3hr

    PG

    I have to search for the movie name after pressing a button and making an input box appear, read the lines from the text file, and input all the contents of the structure into 4 separate text boxes in the form. the structure contains

     Structure VidData
            Dim VidName As String
            Dim VidYear As Integer
            Dim VidRunTime As String
            Dim VidRating As String
        End Structure

    Not sure how to get it to search for the lines. i know i have to make the structure an array but im not sure exactly what to do here. This is using Visual basic. Any help would be appreciated.


    • Edited by Jeffrey Shelton Thursday, October 5, 2017 12:51 AM
    • Moved by Bill_Stewart Tuesday, November 7, 2017 10:53 PM This is not "do my homework for me" forumn
    Thursday, October 5, 2017 12:50 AM