How to force UNIX text files as output instead of DOS text
files??
Alexandre Weffort Thenorio
alethenorio@home.se
Mon, 3 Mar 2003 10:33:17 +0100
Thanks a lot m8 but ghc says it can't the module IOExts when I try to
compile, any suggestion??? Do I just use normal writeFile method to create
the text file then??
Best Regards
Alex
----- Original Message -----
From: "Glynn Clements" <glynn.clements@virgin.net>
To: "Alexandre Weffort Thenorio" <alethenorio@home.se>
Cc: <Haskell@haskell.org>
Sent: Monday, March 03, 2003 2:02 AM
Subject: Re: How to force UNIX text files as output instead of DOS text
files??
>
> Alexandre Weffort Thenorio wrote:
>
> > I am working on a small program which writes a text file but I need this
> > file to be in UNIX format and as it is a Windows program I am compiling
> > it, the output file tends to be in DSO format. Is there anyway that I
> > can force it to create the file in UNIX format???
>
> Use openFileEx, e.g.:
>
> import IOExts
> ...
> handle <- openFileEx filename (BinaryMode WriteMode)
>
> --
> Glynn Clements <glynn.clements@virgin.net>
> _______________________________________________
> Haskell mailing list
> Haskell@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell
>