第 6 章 文件处理和输出打印
description
Transcript of 第 6 章 文件处理和输出打印
-
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