_creat.c
来自「vc library 韩国语版 希望对大家又帮助」· C语言 代码 · 共 20 行
C
20 行
#include <stdio.h>
#include <io.h>
#include <stdlib.h>
#include <string.h>
void main()
{
char buf[]="i love kek1224 very much\r\n\
she love me too.\r\n\
she is very pretty and womanful girl.\r\n";
int handle;
handle=_creat("creat.dat",0);
if (handle==-1)
{
printf("file creation eror\n");
exit(1);
}
write(handle,buf,strlen(buf));
close(handle);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?