文件名称:file_program
介绍说明--下载内容均来自于网络,请自行研究使用
编写一个程序,对用户由命令行参数传入的一个名称进行判断。如果是一个文件名,则输出该文件相关属性 ( 文件名、路径、绝对路径、是否可读、是否可写和文件的长度等 ) 。如果是一个目录,则输出该目录下的文件及子目录名列表。如该名称不存在,则以此名称为名在当前目录下创建一个子目录。
-prepare a process that the user from the command line parameters into the name of a judge. If it is a document, then the output of the document attribute (file name, path, the absolute path, readable, can be written and the length of documents, etc.). If it is a directory, then the output directory and subdirectory of documents from the list. If the name does not exist, it is also the name of the name of the current directory to create a subdirectory.
-prepare a process that the user from the command line parameters into the name of a judge. If it is a document, then the output of the document attribute (file name, path, the absolute path, readable, can be written and the length of documents, etc.). If it is a directory, then the output directory and subdirectory of documents from the list. If the name does not exist, it is also the name of the name of the current directory to create a subdirectory.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
200410032009019128java
file_program
............\200410032009019128java
............\200410032009019128java.bak
file_program
............\200410032009019128java
............\200410032009019128java.bak