文件操作 - GetCh.cc
返回文件管理
返回主菜单
删除本文件
文件: /root/node_modules/node-pty/deps/winpty/misc/GetCh.cc
编辑文件内容
#include <conio.h> #include <ctype.h> #include <stdio.h> int main() { printf("\nPress any keys -- Ctrl-D exits\n\n"); while (true) { const int ch = getch(); printf("0x%x", ch); if (isgraph(ch)) { printf(" '%c'", ch); } printf("\n"); if (ch == 0x4) { // Ctrl-D break; } } return 0; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件