VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command1 
      Caption         =   "Command1"
      Height          =   495
      Left            =   1740
      TabIndex        =   0
      Top             =   1350
      Width           =   1215
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Open "C:\windows\desktop\MyFile.txt" For Input As #1
Open "C:\windows\desktop\MyTempFile.txt" For Output As #2


Print #2, "%"

Do

  Line Input #1, ReadLine
  Print #2, ReadLine

Loop Until EOF(1)

Print #2, "%"

Close #1
Close #2

Kill "C:\Windows\Desktop\MyFile.txt"
Name "C:\Windows\Desktop\MyTempFile.txt" As "C:\Windows\Desktop\MyFile.txt"

End Sub
