Skip to Main Content
VB.Net Web Developer's Guide
book

VB.Net Web Developer's Guide

by Syngress
September 2001
Intermediate to advanced content levelIntermediate to advanced
608 pages
23h 46m
English
Syngress
Content preview from VB.Net Web Developer's Guide
Common Language Runtime • Chapter 4 155
File I/O
Probably one of the most familiar tasks for Visual Basic developers is simple file
I/O. Reading and writing to a file is something we have all done a lot of for a
multitude of purposes. Under VB.NET, file I/O is encapsulated in the System.IO
namespace. Let’s take a look at a simple example of reading from a file with
VB.NET.To make the example clearer, we first look at the code in current
versions of Visual Basic, and then we compare it to how it might look under
.NET.This example simply opens a file for reading, reads in a single line, and dis-
plays it in a message box to the user:
Sub Main()
Dim sBuff As String ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

VB.NET Core Classes in a Nutshell

VB.NET Core Classes in a Nutshell

Budi Kurniawan, Ted Neward

Publisher Resources

ISBN: 9781928994480