Thanks for the replies but this method changes the file date and time to
be the current date and time; it does not preserve the original timestamp.
I will continue to use my method that uses the host's copy command to
preserve this information.

On Wed, Feb 12, 2020 at 6:03 PM 'robert therriault' via Programming <
programm...@jsoftware.com> wrote:

> I do see it defined in addons/general/dirtrees/dirtrees.ijs in the way
> that Raul has suggested
>
> NB. =========================================================
> NB. Verbs local to rgstrees locale
>
> NB.*fcopy v Copies file from one filename to another
> NB. form: ToFile fcopy FromFile
> fcopy=: fwrite~ fread
>
> Cheers, bob
>
> > On Feb 12, 2020, at 14:54, Raul Miller <rauldmil...@gmail.com> wrote:
> >
> > If I were defining fcopy in J (rather than deferring to the host
> > operating system), I'd do it like this:
> >
> >   fcopy=: fwrite~ fread
> >
> > Data flow would be right to left (so source file name on the right,
> > and destination file name on the left). Result is the length of the
> > copied file.
> >
> > I hope this helps,
> >
> > --
> > Raul
> >
> > On Wed, Feb 12, 2020 at 5:50 PM Devon McCormick <devon...@gmail.com>
> wrote:
> >>
> >> Is there, or did there used to be, a file copy command called "fcopy"?
> I
> >> see it in some old code but cannot find its definition.
> >>
> >> Thanks,
> >> Devon
> >> --
> >>
> >> Devon McCormick, CFA
> >>
> >> Quantitative Consultant
> >> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>


-- 

Devon McCormick, CFA

Quantitative Consultant
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to