Search ProofOfProgress Blog

Friday, April 22, 2016

CodeEval VB.Net Sample Code Bug Fix

On Compiler error around this location, the compiler hasn't implemented the error message, nor error recovery, so the compiler will probably crash soon.
The sample code for VB.NET has a typo in it.
GetCommandLneArgs should be: 
Module Challenge
    Sub Main()
        Dim test As String
        Using fileStream As New System.IO.StreamReader(System.Environment.GetCommandLneArgs()(1))
            Do Until fileStream.EndOfStream
                test = fileStream.ReadLine
               'test' represents the test case, do something with it
        End Using
    End Sub
End Module

No comments:

Post a Comment