开发者

Question about ifstream on own executable

Can a program read itself using ifstream, 开发者_高级运维without some sort of corruption or failures ???


Read? Yes. you get the file name as the first member of the argv array in the main parameters. Make sure to open for read only (ios_base::in).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜