第 6 章 文件处理和输出打印
DESCRIPTION
第 6 章 文件处理和输出打印. 6.1 使用传统方法处理文件 6.2 使用文件系统对象处理文件 6.3 使用 App 对象的 Path 属性 6.4 使用语句、函数处理文件 6.5 使用控件处理文件 6.6 显示和打印. 6.1 使用传统方法处理文件. 6.1.1 顺序文件 6.1.2 随机文件 6.1.3 二进制文件. 返回首页. 6.1.1 顺序文件. 当以顺序方式访问文件时,首先要以一定操作的方式,通过 Open 语句将文件打开。顺序访问文件时可以执行的操作有: 从文件输入字符( Input) - PowerPoint PPT PresentationTRANSCRIPT
-
6 6.1 6.2 6.3 App Path6.4 6.5 6.6
-
6.1 6.1.1 6.1.2 6.1.3
-
6.1.1 Open Input Output AppendOpen Open pathname For [Input | Output | Append] As filenumber [Len = buffersize]
-
1Input2Output AppendOpen 3 Close 4
-
6.1.2 Worker 3 19
-
6.1.3 Open Open pathname For Binary As filenumber
-
6.2 6.2.1 6.2.2 Drive6.2.3 Folder6.2.4 File
-
6-1
-
6-1 FSO
-
6.2.1 1 FSO FileSystemObject CreateObject FSO
-
2FSOFSOCreateFolderCreateTextFileDeleteFolderDeleteFileCopyFolderCopyFileGetDriveGetFolderGetFile
-
3CreateFolderCreateTextFileGetDriveGetFolderGetFileFolderFileDrive
-
6.2.2 DriveFSODriveDrive
-
6.2.3 FolderFSOFolder MoveCopy Delete6-2 Folder
-
6-2 Folder
-
6.2.4 FileFSOFile MoveCopyDelete1 FileSystemObjectCreateTextFile FileSystemObject OpenTextFile File OpenAsTextStream
-
26-3 TextStream
-
36-4
-
6.3 App PathApp App App PathPath Dim MyPath MyPath = App.Path
-
6.4 1CurDir CurDir[(drive)]2ChDriveChDrive drive3ChDirChDir path
-
4MkDir MkDir path5RmDir RmDir path 6FileCopyFileCopy source, destination
-
7Kill Kill pathname8SetAttr SetAttr pathname, attributes6-5attributes
-
6-5 attributes
-
6.5 6.5.1 6.5.2 RichTextBox
-
6.5.1 DriveListBoxDirListBoxFileListBox6-2DriveListBoxDirListBoxFileListBox6-3
-
6-2
-
6-3
-
6.5.2 RichTextBox1LoadFile RichTextBox .rtf object.LoadFile pathname, filetype2SaveFile RichTextBox object.SaveFile(pathname, filetype)
-
6.6 6.6.1 6.6.2 6.6.3 6.6.4
-
6.6.1 Print Print [object.]Print [outputlist] [{ ; | , }]
-
6.6.2 1 PrintForm PrintForm PrintForm [form.]PrintForm2 Printer Printer PrintPSetLinePaintPicture Circle Printer
-
6.6.3 1 Font Font6-6Font
-
6-6 Font
-
2ShowFontShowFontFlags 6-7Flags
-
6-7 Flags
-
6.6.4 ShowPrinter6-8ShowPrinter
-
6-8