小编Che*_*riy的帖子

如何将文本文件内容作为参数传递给控制台应用程序?

使用从文本文件提供的输入参数运行控制台应用程序的命令行是什么?

text_file:
This is a simple text file with characters and other
symbols including tabs and new lines
Run Code Online (Sandbox Code Playgroud)

控制台应该得到

$./myapp "This is a simple text file with characters and other symbols including tabs and new lines"
Run Code Online (Sandbox Code Playgroud)

command-line files console

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

标签 统计

command-line ×1

console ×1

files ×1