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 ++中有没有可以做到这一点的命令。由于文件非常大,我无法每次都从头开始阅读。
C 中有一个fseek函数,C++ 中有一个 seekg 函数,它允许您移动到文件中的某个目标。不过,让它进入特定的行可能需要您考虑一下。C++