c - 我想要一个打开的子文件夹并在其中创建一个 txt 文件
问题描述
我是这样尝试的。我也想在两个文件夹之间反复来回跳转。请帮忙。
#include<stdio.h>
#include<windows.h>
int main()
{
system("cd Players"); //Players is the name of my subfolder
system("echo > test.txt");
return 0;
}
解决方案
推荐阅读
- java - TreeSet 不添加最后一个元素
- bash - 来自 printf 的 Docker ENV 值不起作用
- sql - 编写 SQL 查询以排除日期早于具有特定标志的记录的记录
- reactjs - 浏览器导航不适用于使用 BrowserRouter 的反应路由器 v5
- python - 用前面提到的人替换人称代词(嘈杂的 coref)
- javascript - Cloudflare worker 在 Javascript 中实现路由监听器
- c - 用于无向(未加权)图的 C 中的邻接表
- atom-editor - 为什么我的代码在 Atom 编辑器中没有着色并且表现得像坏了?
- python - django中博客的文本编辑器和字体样式
- javascript - 悬停时背景图像缩放而不更改文本大小