gpt4 book ai didi

C++文件操作: Reading specific line in a file.

转载 作者:行者123 更新时间:2023-11-27 23:30:30 24 4
gpt4 key购买 nike

<分区>

我想制作一个程序,可以从文件中的某个点读取文件。例如,如果我有一个包含以下文本的文件:

1:
Hello world. THis is the first string

2:
Hello. This is the second string

3:
Hi!

那么,既然我必须归档,我怎样才能让程序只读取第二个字符串呢?

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com