From: shags72 on
On Jul 19, 12:33 pm, Glenn Jackman <gle...(a)ncf.ca> wrote:
> At 2010-07-19 12:28PM, "shags72" wrote:
>
> >  Well what I really need to do is open a file and put something at the
> >  top of that file. But didn't think that was possible.
>
> "fcopy" is what you're looking for:
>
>     set new [open new_file w]
>     set top [open file_to_put_at_top r]
>     set rest [open file_to_follow_top r]
>
>     fcopy $top $new
>     fcopy $rest $new
>
>     close $new
>     close $top
>     close $rest
>
>     file rename -force $new $rest
>
> --
> Glenn Jackman
>     Write a wise saying and your name will live forever. -- Anonymous

Thanks everyone! I just got pulled away from this issue with other
work but will try this ASAP. Looks like this should work for what I
need.

Brad