freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

操作系統(tǒng)課程設(shè)計(jì)--為linux系統(tǒng)設(shè)計(jì)一個(gè)簡(jiǎn)單的二級(jí)文件系統(tǒng)-在線瀏覽

2025-03-05 16:44本頁(yè)面
  

【正文】 是 提示文件未打開(kāi)文件是否已打開(kāi) 否顯示文件內(nèi)容圖5 讀取文件模塊流程圖5 寫(xiě)入文件模塊 寫(xiě)入文件模塊,思路與讀取文件模塊將本相同,只是添加了對(duì)讀寫(xiě)權(quán)限的判斷。四 程序源代碼1. 文件對(duì)象相關(guān)代碼 package 。public class FilePro implements Serializable{ String filename。 String username。 int protect。 = username。 = flag。 }}2. 文件讀寫(xiě)操作 package 。import .*。 ObjectInputStream in = null。 String path = D:\\file。i7。j100。 } } public Object[][] readData(){ try { in = new ObjectInputStream(new BufferedInputStream(new FileInputStream(path)))。 } catch(EOFException e){ } catch (Exception e) { } return data。 (data)。 } catch (Exception e) { ()。 ObjectInputStream in = null。 String path = D:\\user。 list = (ListString) ()。 } public void writeUser(ListString list){ try { out = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(path)))。 ()。 } }}package 。public class FileSystem { Object[][] data = new Object[7][100]。 ListString user = new ArrayListString()。 String[] cmd = new String[2]。 public FileSystem() { data = ()。 } public static void main(String[] args) { FileSystem fs = new FileSystem()。 } public void help() { (歡迎使用該文件系統(tǒng))。 (創(chuàng)建文件)。 (列目錄文件)。 (以下命令需加文件名)。 (open )。 (close )。 (read )。 (write )。 (delete )。 mand()。 String d = null。 d = ()。 cmd = ( )。 else if (cmd[0].equals(create)) create()。 else if (cmd[0].equals(delete)) delete(cmd[1])。 else if (cmd[0].equals(close)) close(cmd[1])。 else if (cmd[0].equals(write)) write(cmd[1])。 (0)。 mand()。 (請(qǐng)輸入用戶名:)。 String username = ()。 i ()。
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1