[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: {newb} file and puts
From: STEPHEN BECKER I V <Becker004 () gmail ! com>
Date: 2004-10-12 20:02:42
Message-ID: 3703ec2d04101213021dbcb836 () mail ! gmail ! com
[Download RAW message or body]
Yes, i see there is always 6 ways to do the same thing... i think i
will be using print from now on.
Becker
On Wed, 13 Oct 2004 04:52:57 +0900, James Edward Gray II
<james@grayproductions.net> wrote:
> On Oct 12, 2004, at 2:45 PM, STEPHEN BECKER I V wrote:
>
> > f="z:\t.txt"
> > loc = File.open(f, "w+")
> > loc.puts((i+65).chr,' ',a[i]) if a[i]>0
> >
> >
> > Nevermind what it is writing, How do i keep the (i+65).chr and a[i] on
> > the same line in the file?
>
> Use print() instead of puts() and insert \n characters as needed.
>
> James Edward Gray II
>
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic