c中如何从文件中指定字符串开始读取固定长度的字符串

lintc22 lintc22 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
目前需要从一个备份日志文件中循环读取ORA错误信息,假如文件内容如下:
. exporting table table1 0 rows exported
. . exporting table table2 0 rows exported
. . exporting table table3 59 rows exported
WARN:ORA-00001
. . exporting table table4 5 rows exported
. . exporting table table5 64 rows exported
WARN:ORA-20001
. . exporting table table6 6 rows exported
. . exporting table table7 314 rows exported
ERR:ORA-30001
我想问下如何从该文件中循环读取以 ORA- 开头加上5位数字的ORA-00001, ORA-20001, ORA-30001这3个 字符串?

...全文

相关推荐

评论 4
收藏 已收藏
分享
返回顶部
lintc22
C语言 70,039 成员 243,237 内容