プログラムに argv[1] に書き込む FILE オブジェクトがあります
tabptr = fopen(argv[1],w+)
そして、同じファイルから読み取る必要がありますが、書き込みではなく argv[1] から読み取ることができる tabptr へのポインターを作成するにはどうすればよいですか? それとも、私はこのプロセスを考えすぎていますか?
tabptr = fopen(argv[1],w+)
//tabptr writes to argv[1]...
//time to declare file to read from the same tabptr wrote to
FILE * tabptrStr = tabptr //how would i make tabptrStr readable?
tabptrStr = fopen(argv[1],"r") //or am i just overthinking this and this will accomplish my goal?
argv[1] はまさに私を混乱させるものです。私は C++ から来た c が初めてです