Imports System
Imports System.IO
Public Class FileInverter
Public Shared Sub Main()
Dim inFile As BinaryReader = New BinaryReader(File.Open("hola.txt", FileMode.Open))
Dim outFile As BinaryWriter = New BinaryWriter(File.Open("hola.txt.inv", FileMode.Create))
Dim filesize As Long = inFile.BaseStream.Length
For i As Long = filesize - 1 To 0
inFile.BaseStream.Seek(i, SeekOrigin.Begin)
Dim b As Byte = inFile.ReadByte()
outFile.Write(b)
Next
inFile.Close()
outFile.Close()
End Sub
End Class