c语言读取每一行,再将符合条件的写入另一个文件中。

已经很久没有碰过c语言了,可能很多同学都觉得so easy。重新拾起来还是有点害怕&激动。

拾起来的时候犯了很多新手会返的错误,对不起大学老师了。╮( ̄▽ ̄")╭


写这玩意的原因是开发扔了一份gc.log给我,打出来的是详细信息,

比如:

<span style="font-family:Comic Sans MS;">2015-10-29T20:16:13.757+0800: 4.237: [GC [PSYoungGen: 1280000K->25644K(1493312K)] 1280000K->25644K(4906688K), 0.0096300 secs] [Times: user=0.05 sys=0.04, real=0.01 secs] 
Total time for which application threads were stopped: 0.0098530 seconds
Application time: 0.0020110 seconds
Total time for which application threads were stopped: 0.0001470 seconds
Application time: 0.0000300 seconds
Total time for which application threads were stopped: 0.0002440 seconds
Application time: 0.0000300 seconds
Total time for which application threads were stopped: 0.0001120 seconds
Application time: 0.0000540 seconds
Total time for which application threads were stopped: 0.0001960 seconds
Application time: 0.0000270 seconds
Total time for which application threads were stopped: 0.0000570 seconds
Application time: 0.0000420 seconds
Total time for which application threads were stopped: 0.0001250 seconds
Application time: 0.0000290 seconds
Total time for which application threads were stopped: 0.0001090 seconds
Application time: 0.0000270 seconds</span>


但是我可能不太需要具体的线程停止的时间,比如:

<span style="font-family:Comic Sans MS;">2015-10-31T23:03:46.204+0800: 182856.684: [GC [PSYoungGen: 1355299K->309811K(1237120K)] 4059775K->3237002K(4650496K), 0.0469180 secs] [Times: user=0.46 sys=0.00, real=0.04 secs] 
2015-10-31T23:05:42.228+0800: 182972.708: [GC [PSYoungGen: 1237107K->260369K(1556288K)] 4164298K->3
  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值