471,310 Members | 1,156 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

modify a file

Hello,

I have a file which is large about 3.5G.
I need to modify some lines in it,but I don't like to create another file
for the result.
How can i do it? thanks.


National Bingo Night. Play along for the chance to win $10,000 every week. Download your gamecard now at Yahoo!7 TV. http://au.blogs.yahoo.com/national-bingo-night/
Nov 4 '07 #1
1 1368
On Mon, 05 Nov 2007 01:55:50 +1100, tech user wrote:
I have a file which is large about 3.5G.
I need to modify some lines in it,but I don't like to create another file
for the result.
How can i do it? thanks.
In general not a good idea unless the modification does not change the
length of the lines. If it does, everything behind that line must be
copied within the file, either "up" before the modification to make room
or "down" after the modification to close a gap. If anything goes wrong
while moving/copying the data you are left with a 3.5G file that may be
broken.

Ciao,
Marc 'BlackJack' Rintsch
Nov 4 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Chris McKeever | last post: by
12 posts views Thread by Venkat | last post: by
3 posts views Thread by Maileen | last post: by
3 posts views Thread by muttu2244 | last post: by
4 posts views Thread by muttu2244 | last post: by
1 post views Thread by LB | last post: by
1 post views Thread by TimEl | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.