FileSystem Object有两个方法,分别为CreatText File方法和OpenText File方法。

FileSystem Object有两个方法,分别为CreatText File方法和OpenText File方法。


相关考题:

File类中,获得文件路径的方法是______。

下面创建一个新文件对象方法错误的是( )。A.File myFile; myFile=new File("mulu/file");B.File myFile=new File();C.myFile=new FileC/mulu","filel");D.File myDir=new file("/mulu"); myFile=new File(Dir, "filer');

下列InputStream构造方法正确的是()。 A、InputStream in=new FileReader(“file.txt”)B、InputStream in=new FileInputStream(“file.txt”)C、InputStream in=new InputStreamFileReader (“file.txt”,“read”)D、FileInputStream in=new FileReader(new File(“file.txt”))

下面哪项不是File类的构造方法() A、File(StringfileName)B、File(Filedirectory)C、File(Stringdirectory,StringfileName)D、File(Filedirectory,StringfileName)

A user reports that they are getting an error when trying to save a video file to a share on a server running Windows Server 2003. The administrator looks at the file and finds that it is 5GB. The administrator checks the server and finds that the server has 100GB of free space. This file needs to be saved on the server.Which of the following should the administrator do to accomplish this?()A. Convert the filesystem to EXT3.B. Convert the filesystem to VMFS.C. Convert the filesystem to NTFS.D. Convert the filesystem to FAT32.

The(72)turns the source file into an object file and the(73)turns the object file into an executable file.A.translatorB.compilerC.interpreterD.linker

用面向对象方法设计了一个父类File和两个子类DiskFile和TapeFile,这两个子类继承了其父类的open方法,并给出不同的实现。不同的子类执行open方法时,有不同的行为,这种机制称为( )。A.继承B.消息传递C.多态D.关联

An application writes to a log file in the /logs filesystem that is full. After the log file is deleted, 'df' still shows the filesystem as 100% full. What is the likely cause of the problem and what will resolve it?()A、The deleted file is still open by the application.The system must be rebooted before'df' will show the reduction in the filesystem.B、The deleted file is still open by the application.The application must be stoppedbefore 'df' will show the reduction in the filesystem.C、The filesystem is still marked as full in the /etc/fs.status file.The system must be rebooted before 'df' will show the reduction in the filesystem.D、The filesystem is still marked as full in the /etc/fs.status file.The application must be stopped before 'df' will show the reduction in the filesystem.

File类中的listFiles()方法说法正确的是()。A、 获取File对象封装的路径下的全部文件和文件夹对象B、 只获取File对象封装的路径下的文件C、 该方法返回File类型数组D、 该方法返回String类型数组

File类提供实现文件读写的操作方法。

wait()方法首先是哪个类的方法?()A、 ObjectB、 Thread.C、 RunnableD、 File

关于File类中的exists()方法说法错误的是()。A、 判断File对象中封装的路径所对应的文件或者文件夹是否存在B、 此方法返回boolean类型值C、 判断File对象封装的路径是否是相对路径D、 判断File对象封装的路径是否是绝对路径

File类提供的静态方法有哪些,各有什么用?

下面可打开文件的方法有()A、File对象的OpenAsTextStream方法B、FileSystemObject对象的OpenAsTextStream方法C、File对象的OpenTextFile方法D、TextStream对象的OpenTextFile方法

An application writes to a log file in the /logs filesystem that is full. After the log file is deleted,‘df’ still shows the filesystem as 100% full.  What is the likely cause of the problem and what will resolve it?()A、The deleted file is still open by the application. The system must be rebooted before ‘df’ will show the reduction in the filesystem.B、The deleted file is still open by the application. The application must be stopped before ‘df’ will show the reduction in the filesystem.C、The filesystem is still marked as full in the /etc/fs.status file. The system must be rebooted before ‘df’ will show the reduction in the filesystem.D、The filesystem is still marked as full in the /etc/fs.status file. The application must be stopped before ‘df’ will show the reduction in the filesystem.

要新建一个出版物可以采用()方法。A、单击“File/Place”命令B、单击“File/New”命令C、单击“Layout/InsertPages”命令D、单击“File/Open”命令

A user reports that they are getting an error when trying to save a video file to a share on a server running Windows Server 2003. The administrator looks at the file and finds that it is 5GB. The administrator checks the server and finds that the server has 100GB of free space. This file needs to be saved on the server. Which of the following should the administrator do to accomplish this?()A、Convert the filesystem to EXT3.B、Convert the filesystem to VMFS.C、Convert the filesystem to NTFS.D、Convert the filesystem to FAT32.

Which command(s) will result in the smallest sized backup of the text files contained in the /staticFS filesystem?()  A、tar -cvf file_system.tar /staticFS ; gzip file_system.tarB、tar -xvf /staticFS file_system.tar ; gzip file_system.tarC、tar -cvf /staticFS file_system.tar ; compress file_system.tarD、tar -xvf file_system.tar /staticFS  ; compress file_system.tar

What is the process for creating an NFS mount between two servers in the same network zone?()A、Export the desired filesystem in the /etc/nfs file, run ’exportfs -a’,create a mount directory on the desired server, and mount the NFS filesystem.B、Run ’exportfs -a’,export the desired filesystem in the /etc/nfs file,create a mount directory on the desired server, and mount the NFS filesystem.C、Export the desired filesystem in the /etc/exports file, run ’exportfs -a’,create a mount directory on the desired server,and mount the NFS filesystem.D、Run ’exportfs -u’,export the desired filesystem in the /etc/exports file, create a mount directory on the desired server,and mount the NFS filesystem.

A system administrator is unable to unmount a file system. Which is the appropriate command to determine who or what is accessing the file system?()A、who /filesystemB、lsfs /filesystemC、fuser /filesystemD、umount -f /filesystem

Given that file is a reference to a File object that represents a directory, which code fragments will succeed in obtaining a list of the entries in the directory?()  A、Vector filelist = ((Directory) file).getList();B、String[] filelist = file.directory();C、Enumeration filelist = file.contents();D、String[] filelist = file.list();E、Vector filelist = (new Directory(file)).files();

You are developing an application to create a new file on the local file system.You need to define specific security settings for the file. You must deny the file inheritance of any default security settings during creation.What should you do?()A、Create the file by using a new FileStream object by passing the FileSecurity object as a parameter to the FileStream constructor.B、Create a new FileSecurity object.C、Apply the permissions by using the File class.D、Create a new FileSystem Access Rule object for each permission that you need,and add each rule to the FileSecurity object.E、Create a new FileSystem Audit Rule object and add it to the FileSecurity object.

单选题wait()方法首先是哪个类的方法?()A ObjectB Thread.C RunnableD File

多选题You are developing an application to create a new file on the local file system.You need to define specific security settings for the file. You must deny the file inheritance of any default security settings during creation.What should you do?()ACreate the file by using a new FileStream object by passing the FileSecurity object as a parameter to the FileStream constructor.BCreate a new FileSecurity object.CApply the permissions by using the File class.DCreate a new FileSystem Access Rule object for each permission that you need,and add each rule to the FileSecurity object.ECreate a new FileSystem Audit Rule object and add it to the FileSecurity object.

多选题File类中的listFiles()方法说法正确的是()。A获取File对象封装的路径下的全部文件和文件夹对象B只获取File对象封装的路径下的文件C该方法返回File类型数组D该方法返回String类型数组

问答题File类提供的静态方法有哪些,各有什么用?

单选题要新建一个出版物可以采用()方法。A单击“File/Place”命令B单击“File/New”命令C单击“Layout/InsertPages”命令D单击“File/Open”命令