小编use*_*329的帖子

命令行参数,读取文件

如果我进入命令行C:myprogram myfile.txt

如何在程序中使用myfile.我是否必须扫描它或是否有任意方式访问它.

我的问题是如何在我的程序中使用myfile.txt.

int
main(){
    /* So in this area how do I access the myfile.txt 
    to then be able to read from it./*
Run Code Online (Sandbox Code Playgroud)

c arguments file command-line-arguments

11
推荐指数
1
解决办法
7万
查看次数

标签 统计

arguments ×1

c ×1

command-line-arguments ×1

file ×1