RandomAccessFile

时间:2013.09.08 发布人:aiirz

RandomAccessFile

已解决问题

谷歌aiirz用户在2013.09.08提交了关于“侠客行RandomAccessFile”的提问,欢迎大家涌跃发表自己的观点。目前共有1个回答,最后更新于2024-09-03T11:54:45。怎么NEWRandomAccessFile
后面()里面有两个东西。一个是FILE。后面一个是什么希望大家能够帮助她。

详细问题描述及疑问:怎么NEWRandomAccessFile
后面()里面有两个东西。一个是FILE。后面一个是什么期待您的答案,感谢你,我会记得你对我的好的 !

希望以下的回答,能够帮助你。

第1个回答

用户名:pcalh  

RandomAccessFile(Filefile,Stringmode)
Createsarandomaccessfilestrea来自mtoreadfrom,andoptionallytowriteto,thefilespecifiedbytheFileargument.

"r"Openforreadingonly.Invo331215问答kinganyofthewritemethodsoftheresultingo否著明bjectwillcauseanIOExceptiontobethrown.
"rw"Openforreadingandwriting.Ifthefiledoesnotalreadyexistthenanattemptwillbemadetocreateit.
"rws"Openforreadingandwriting,aswith"rw",andalsorequirethateveryupdatetothefile'scontentormetadatabewrittensynchronouslytotheunderlyin云早外gstoragedevice.
"rwd"Openforreadingandwriting,aswith"rw",andalsorequirethateveryupdatetothefile'scontentbewrittensynchronous章文载苏促呼久准选lytotheunderlyingstoraged含国式培查evice.