简单的问题,关于文件的操作!!!(50分)

  • 主题发起人 主题发起人 guan1573
  • 开始时间 开始时间
G

guan1573

Unregistered / Unconfirmed
GUEST, unregistred user!
File f1 = new File("ss.ext");
boolean b = f1.isAbsolute();
为何编译不通?
 
http://www.delphibbs.com/delphibbs/dispq.asp?lid=1018713
 
new File 中参数不够:
Creates a File object given a new or existing file.
Syntax
public File( String path, int mode, int access, int share) /////这个
public File( int handle )
public File( int handle, boolean owned )
Parameters
path
The path of the file to create or open.
mode
The mode used to open the file. Can be any value from the FileMode enumeration.
access
The access to the file. Can be any value from the FileAccess enumeration.
share
The share access that the file will support when opened. Can be any value from the FileShare enumeration.
handle
An existing file handle.
owned
specifies whether the File object owns the handle.
Exceptions
WinIOException thrown if an error occurs.

 
to jsxjd,
你错了,你用delphi来回答我java问题!:)
看来你是糊涂了。
to 猪猪
都什么呀?

问题已经解决,不过分还要给大家,来者有分
 
后退
顶部