Results 1 to 2 of 2

Thread: Open File

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    344

    Red face

    This is basically what im trying to do...

    If line one in dir$("\car.txt") says "yes" then
    label1.visible = true
    elseif line one in dir$("\car.txt") says "no" then
    label2.visible = true
    end if


    Hope ya can help
    -RaY
    VB .Net 2010 (Ultimate)

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    Cool

    Private Sub Command1_Click()
    Open "c:\yourfile.txt" For Input As #1
    Dim sFirst
    Line Input #1, sFirst
    If sFirst = "yes" Then
    Label1.Visible = True
    Else
    Exit Sub
    End If

    Close #1

    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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