文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > 外语学习 > 英语考试 > chapter 08 String and Text IO Part II
侵权投诉

chapter 08 String and Text IO Part II

1. File Constructor import java.io.File File(String path)

1. File f = new File(“c:\1.txt”); 2. File f = new File(“c:\\1.txt”); Note : (1)Constructing a File instance does not create a file on the machine. (创建一个文件实例并没有在机器上建立一个文件,只是创建了一个文件 实例或者文件对象指向该文件) (2)You can invoke the exists() method on a File instance to check whether the file exists.(可以通过调用exists()方法来判断文件是否 存在) (3)If the file doesn’t exist, you can invoke the createNewFile() method to create a file on the disk.(如果文件不存在,可以调用 createNewFile()方法来创建文件)

chapter 08 String and Text IO  Part II

上一页第4页

你可能喜欢

热门文档

相关文档

  • chapter 08 String and Text IO Part I

    chapter 08 String and Text IO Part I_英语学习_外语学习_教育专区。Introduction To Java Programming Chapter8 String and Text IO Part I College Of ...

  • spss Chapter+1-part+II

    Data Management Chapter 1-partII 1 “Data” ? The word data is the ...hand side of the cells and text(string) entries to the left-hand side....

  • chapter 18 Binary IO

    chapter 18 Binary IO_财会/金融考试_资格考试/...text files and can be read by a text editor,...(String[] args) throws IOException { ...

  • chapter 18 二进制IO

    chapter 18 二进制IO_计算机软件及应用_IT/计算机...Text File & Binary File (文本文件和二进制文件)...(String[] args) throws IOException { ...

  • chapter 08 字符串

    Introduction To Java Programming Chapter8 String and Text IO Part I College Of Software Liu. Zhi Gang Email:dqpilzg@163.com ? Objectives ? To use the...

  • Lesson_8 string and file IO

    Use the string control and indicator located on the Controls? String & Path palette to simulate text entry boxes and labels. ? Use the String functions...

  • 东北石油大学-软件学院-Java-课件chapter 18 二进制IO

    课件chapter 18 二进制IO_理学_高等教育_教育专区。...Text File & Binary File (文本文件和二进制文件)...(String[] args) throws IOException { ...

  • chapter2(JavaServer Page)技术part1

    chapter2(JavaServer Page)技术part1_计算机/互联...public static final String INFO = "www.MLDNJAVA...使用标签指令包含 <%@ page contentType="text/html...

  • java chapter14

    ? The differences between text files and binary files. ? Sequential-access ...String[] list() Fig.14.3 File methods. (Part 2 of 2) ? 2005 ...

  • Simple Java IO

    Simple Java I/O Part II LineReader and LineWriter Text files ? Text (....(String line) { printWriter.println(line); } close void close( ) { ...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email