⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testapp.vb

📁 This is a book about vb.you could learn this from this book
💻 VB
字号:


Imports CustomStreams
Imports System.IO
Imports System

Public Module Application

	Public Sub Main()

		Dim customStream As UpperCaseStream
		
		' Create our custom stream, passing it a file stream 

		customStream = New UpperCaseStream( new FileStream( "file.txt", FileMode.Open ) )
		Dim sr As New StreamReader( customStream )
		Console.WriteLine("{0}",sr.ReadToEnd() )
		customStream.Close()

		' Create a file using our custom stream (using ASCII encoding)

		customStream = New UpperCaseStream( new FileStream( "fileout.txt", FileMode.Create ) )
		Dim sw As New StreamWriter( customStream,  System.Text.Encoding.ASCII )

		Dim i As Integer

		For i = 0 To 99
			sw.WriteLine("Hello World!")
		Next
		sw.Close()
	
	End Sub

End Module

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -