The function rewind can .? move the file pointer to the end of the file.|move the file pointer to the specific location of the file.|move the file pointer to the beginning of the file.|move the file pointer to the location of the next character.
举一反三
- 下面哪个命令用来输入扩展名是DWG的文件( )。 A: File/Open B: File./Import C: File/Xref D: File/Merge
- 如何定义一个文件读写变量? A: FILE *file; B: FILE file; C: FILE &file; D: file *file;
- To save (保存) the changes in an ______ file, you need to save this file. A: exist B: existed C: existing D: existence
- 创建一个d盘aa文件夹下news.txt文件对象,以下正确的是 A: File file = new File("d:/aa"); B: File file = new File("d:/aa/news.txt"); C: File file = new File("d:/news.txt"); D: File file = new File("d:\aa\news.txt");
- 下列__________说法是正确的?I:File file = new File("input.txt");try (Scanner input = new Scanner(file)) { String line = input.nextLine();}II:try (File file = new File("input.txt"); Scanner input = new Scanner(file);) { String line = input.nextLine();}III:File file;try (file = new File("input.txt"); Scanner input = new Scanner(file);) { String line = input.nextLine();}IV:File file;Scanner input;try (file = new File("input.txt"); input = new Scanner(file);) { String line = input.nextLine();} A: I B: II C: III D: IV