Exception handling syntax: Difference between revisions

Content deleted Content added
[[BASIC]]: <source>
Line 41:
 
=== [[BASIC]] ===
<source lang="vb">
ON ERROR GOTO handler
OPEN "Somefile.txt" FOR INPUT AS #1
CLOSE #1
PRINT "File opened successfully"
END
 
handler:
PRINT "File does not exist"
END
</source>
 
=== [[Csharp|C#]] ===