Message-Id: <1.5.4.32.19970827074311.00693944@pop1.nf.sympatico.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Wed, 27 Aug 1997 05:43:11 -0200 To: Eli Zaretskii From: Colin Walsh Subject: Re: Writing a struct to disk Cc: djgpp AT delorie DOT com Precedence: bulk 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