VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3090
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3090
   ScaleWidth      =   4680
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command1 
      Caption         =   "&Quit"
      Height          =   495
      Index           =   2
      Left            =   3000
      TabIndex        =   3
      Top             =   2160
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Start From &Line"
      Height          =   495
      Index           =   1
      Left            =   1680
      TabIndex        =   2
      Top             =   2160
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "&Start"
      Height          =   495
      Index           =   0
      Left            =   360
      TabIndex        =   1
      Top             =   2160
      Width           =   1215
   End
   Begin VB.Label Label1 
      BorderStyle     =   1  'Fixed Single
      Height          =   1215
      Left            =   360
      TabIndex        =   0
      Top             =   360
      Width           =   3855
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)



Private Sub Command1_Click(Index As Integer)

    Dim intLine As Integer
    
    Select Case Index
        Case 0
            ReadFile
        Case 1
            intLine = InputBox("Please enter the line to start from", "Start From", 1)
            ' There should be some validation of intLine here
            ReadFile intLine
        Case 2
            Unload Me
    End Select
    
End Sub



Public Sub ReadFile(Optional StartPoint As Integer = 1)

    Dim ff As Integer
    Dim lngCount As Long
    Dim strLine As String
    
    ff = FreeFile
    
    Open "C:\temp\test.txt" For Input As ff
    
    Do Until EOF(ff)
        lngCount = lngCount + 1
        Line Input #ff, strLine
        If lngCount >= StartPoint Then
            Label1.Caption = strLine
            DoEvents
            Sleep 10000
        End If
    Loop
    
    Close ff

End Sub
