[求助]怎样用C语言去掉文本中特定的字符行
我想把下载的电影字幕文件打印出来,可是每句话前都有编号和时间标签各占一行,如下:
1
00:00:01,390 --> 00:00:03,221
He's coming, he's coming!
2
00:00:06,161 --> 00:00:07,651
Go faster, he's coming!
3
00:00:10,832 --> 00:00:13,562
-Make the Iight.
-HoId on.
4
00:00:31,987 --> 00:00:34,854
We were both still flushed
from our day of adventure.
5
00:00:35,023 --> 00:00:37,992
-WeII, good night.
-Good night.
... ...
... ...
这样直接打印很浪费,而且看起来不方便,应该把编号和时间标签的行去掉,变成下面的样子,每句话中间隔的一行空行还保留:
He's coming, he's coming!
Go faster, he's coming!
-Make the Iight.
-HoId on.
We were both still flushed
from our day of adventure.
-WeII, good night.
-Good night.
......
请问怎样用C语言编个程序处理呢?我试过不能把一个字幕文件的所有内容全部读到一个二维数组里,太大了,好像C语言规定的最大的二维数组也装不下。
请高手帮下忙,最好给出代码。谢谢!!!
[此贴子已经被作者于2007-5-6 10:25:02编辑过]