Linux-文件操做(open、write、read、close、iotcl)

首先,介紹一下linux環境下簡單c程序的執行與運行,就以HelloWorld爲例。linux 創建並編寫一個.c文件。 命令:touch helloWorld.c 編寫文件內容:vim helloWorld.c(固然,也能夠用emacs,我的不喜歡emacs) 文件中的內容: #include <stdio.h> #include <stdlib.h> int main(){ printf
相關文章
相關標籤/搜索