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).
精彩评论