[plt-scheme] How can I make ~% output automatcially either #\return#\newline or simply #\newline

From: Robby Findler (robby at cs.uchicago.edu)
Date: Tue Jul 8 15:49:03 EDT 2003

Not sure if this will help, but if the file is opened in text mode,
you'll get the expected behavior by using (newline output), I believe.

Robby

At Tue, 8 Jul 2003 15:58:12 -0400, "John W. Small" wrote:
> ------------------------------------------------------------------------------
> I want to write something like
> 
>         fprintf output "assdfs   ~%" ...)
> 
> and have the line termination character sequence automatically
> adjust to carriage return line feed on Windows platforms and just
> line feed on unix platforms.
> 
> I'm compiling on Windows with mzc  and it is only outputting
> a line feed character.
> 
> Thanks in advance.
> 
> John
> 
> 
> ------------------------------------------------------------------------------
> I want to write something like
>  
>         fprintf output "assdfs   ~%" ...)
>  
> and have the line termination character sequence automatically
> adjust to carriage return line feed on Windows platforms and just
> line feed on unix platforms.
>  
> I'm compiling on Windows with mzc  and it is only outputting
> a line feed character.
>  
> Thanks in advance.
>  
> John
>  



Posted on the users mailing list.