For Programmers: Free Programming Magazines  


Home > Archive > Extreme Programming > February 2006 > A file utility program to copy a Certain Part of a file ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author A file utility program to copy a Certain Part of a file ?
Mark246@email.com

2006-02-02, 7:02 pm

In Win XP, Does anybody know of a utility program that will copy only a
Designated Part of a file?

There are already programs, like the iHex hex editor, that will reduce
the size of a file, but it truncates the file from the END of the file.


I need a program that truncates a file at some other designated spot.
Like, in a 100 Kb file that has internal addresses from 0 to 100,000, I
want to delete the bytes from 15,000 to 25,000, creating a 90 Kb file.


Actually, the file I need to reduce is 2 Gb, but,... Does such a
program exist?

Thanks very much, Gurus.

Pier Paolo

2006-02-16, 9:57 pm

sed, a unix command that you can use even on windows
you get it from here
http://unxutils.sourceforge.net/
bye
PP

Mark246@email.com wrote:
> In Win XP, Does anybody know of a utility program that will copy only a
> Designated Part of a file?
>
> There are already programs, like the iHex hex editor, that will reduce
> the size of a file, but it truncates the file from the END of the file.
>
>
> I need a program that truncates a file at some other designated spot.
> Like, in a 100 Kb file that has internal addresses from 0 to 100,000, I
> want to delete the bytes from 15,000 to 25,000, creating a 90 Kb file.
>
>
> Actually, the file I need to reduce is 2 Gb, but,... Does such a
> program exist?
>
> Thanks very much, Gurus.
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com