delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/27/04:16:16

Message-Id: <1.5.4.32.19970827074311.00693944@pop1.nf.sympatico.ca>
Mime-Version: 1.0
Date: Wed, 27 Aug 1997 05:43:11 -0200
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
From: Colin Walsh <cwalsh AT nf DOT sympatico DOT ca>
Subject: Re: Writing a struct to disk
Cc: djgpp AT delorie DOT com

At 10:34 AM 8/27/97 +0300, you wrote:
>You should look into your bin subdirectory more often.  DJGPP comes with
>such a program already: it is called UTOD (Unix TO Dos) and should be
>sitting right there in your bin subdirectory.  There's also an associated
>program DTOU for the reverse job.
>
>These two have a nice feature whereby they preserve the timestamps of the
>converted files, so programs like Make don't even know the file has been
>changed.  They also don't require the second argument (the output file),
>since they rewrite the original file, and thus can be used to convert many
>files or even whole directory trees with a single command like this:
>
>	 utod dir/.../*
>
>
Whoops! forgot about those (I actually took time to look at my bin directory
a while ago... its just that I forgot about it :). Well, it only took about
60 seconds to write my program (Hmmmm.... maybe I could make it so the
timestamp is preserved. Also, I could make it so it only needs one arg (the
filename) and could detect whether or not it is a DOS or Unix file).

Colin

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019