• Post Reply Bookmark Topic Watch Topic
  • New Topic

Move content  RSS feed

 
George Liao
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a html file. The content likes:

Aaa�
Bbb�
ccc�
<!� Move this line -- >
ddd�
�.


I want to move �<!� Move this line -- >� to a new position(for example, move to second line):

Aaa�
<!� Move this line -- >
Bbb�
ccc�
ddd�
�.


Which API is good for this? I know I can read the file line by line and check the line content and write to a new file, any better solutions? The file is quite big. I have to process 2000 this kind of files.

Thanks in advance.

George
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!