Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我们写RandomAccessFile r =new RandomAccessFile("file.txt","rw");
RandomAccessFile r =new RandomAccessFile("file.txt","rw");
如何在桌面上名为 home 的文件夹中创建此文件。再次,它应该是一个语句!
'RandomAccessFile r =new RandomAccessFile("C:/Users/Siddharth Yadav/Documents/file.txt","rw");'
RandomAccessFile r =new RandomAccessFile(path_of_file,"rw"); 如果文件已经存在,则打开它,否则创建文件然后打开
RandomAccessFile r =new RandomAccessFile(path_of_file,"rw");