英语翻译Quite often,the date that a user needs to work with can’t all be contained within one program.Think of word processing for example.Microsoft Word is a powerful program with a thremendous number of features(many more than most users ever
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 15:53:11
英语翻译Quite often,the date that a user needs to work with can’t all be contained within one program.Think of word processing for example.Microsoft Word is a powerful program with a thremendous number of features(many more than most users ever
英语翻译
Quite often,the date that a user needs to work with can’t all be contained within one program.Think of word processing for example.Microsoft Word is a powerful program with a thremendous number of features(many more than most users ever use ,or even know about).Microsoft Word ,however,is only the shell—the tool—with which a user can create other document.The documents that the user creates don't reside within Word,but rather are written as standalone entities to the user’s hard drive,or to a floppy disk.
The word files are written with an extension of.DOC,to indicate that they are doucument originally created with word and capable of being read and edited by word.File extensions are both clues and maps to the programs that created them and to the programs with which they can be read.
The simplest type of file in the Windows environment is the ASCII text file-typically indicate by a.TXT extension.ASCII text files can be created and read by WordPad,NotePad,the Edit utility in DOS,any higher-leveal editor,and many other programes.In short,almost any program can read ASCII text files and,conversely,almost any program can write to ASCII text files,if their default file type is changed.
Visual Basic has the capability to read and write to ASCII files that are built into it.The examples in this chapter show how to read existing ASCII files(using the examples on the companion CD),create new files,modify contens(edit),print save and so forth.By the end of this chapter,you will understand the basics of interacting with ASCII files,which is a good introduction to the topic of interacting with all types of files,the topic of Chapter 11.
英语翻译Quite often,the date that a user needs to work with can’t all be contained within one program.Think of word processing for example.Microsoft Word is a powerful program with a thremendous number of features(many more than most users ever
一个软件往往不能涵盖用户所想要的全部功能.以文字处理为例,Microsoft Word是个强大的软件,所包含的功能之多,有很多用户都用不到,甚至从来都不知道.尽管如此,Microsoft Word也不过是个外壳程序而已,只是用户用来创建其他文档的一种工具.这些文档不是存在于Word内部,而是作为独立的实体保存在用户的硬盘驱动器或软盘上.Word文件的扩展名为.doc,表明它们是由Word创建的文档,并可以通过Word进行读写编辑.文件扩展名暗示出文件的原始创建程序以及可以通过哪些程序进行读操作.Windows系统下,最简单的文件类型是ASCII文本文件,扩展名为.TXT.ASCII文件可以通过word记事本、记事本、DOS编辑工具以及其他高级编辑器创建并读取.总之,几乎所有程序都可以读取ASCII文件,相反,如果改变默认文件类型,几乎所有的程序都可以写入ASCII文件.
Visual Basic 可以读取并写入其内置的ASCII文件.本章举例阐明了如何读取现存的ASCII文件(通过随书附带CD上举的例子)、如何创建新文件、如何修改文本内容,以及如何打印保存等等.通过本章的学习,你将会掌握ASCII文件操作的基本内容,在第十一章里,会了解更多其他的文件类型.