Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
テキストファイルを開いて特定の文字列を見つけ、その行を取得して、その行の内容を取得する方法を探しています。私はこれについての助けを見つけることができません。また、C++とプレインストールされたライブラリを使用する必要があります...など。Macで動作しないものやC++でプレインストールされていないものはすべて...他の小さなライブラリを使用できる可能性があります...
open a filestream while filestream is NOT at End Of File get a line of the file into a temp string search the temp string for the keyword if the keyword is in it thats your line, exit the loop else keep looping
うまくいけば、それはあなたにとって十分に大きなヒントです。