data=File.stat(__FILE__)putsdata.modeFile.chmod(777,__FILE__)#changethepermissionoffiledata=File.stat(__FILE__)putsdata.modeputsdata.mtime#lastreadputsdata.atime#lastupdateputsdata.ctime#lastcreatefile=File.open("F:/self/mycode/FileTest.rb","a+"...
查看全文