Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

when I run this code:

 

       Dim sr As StreamReader = New StreamReader(mainprogram)
       Dim line As String
       Do
           line = sr.ReadLine()
           If Regex.IsMatch(line, "\s*CALL") Then
           End If
       Loop Until line Is Nothing

 

I get the following error:

 

An unhandled exception of type 'System.ArgumentNullException' occurred in system.dll

 

the error comes from line

If reges.isMatch(line,"\s*CALL")then

 

Additional information: Value cannot be null.

 

 

if you have any suggestion please let me know

Edited by PlausiblyDamp

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...