ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
Re: ruby File#sysread
by Aatch Random other posts by this author
Jun 14 2007 9:10PM messages near this date
Re: ruby File#sysread | Re: ruby File#sysread
Bill Kelly wrote:
>  From: "James Milner" <bladeon@[...].com>
> > windows fault
>  Just in case the answer wasn't clear, Windows pretends that "text" files
>  are different from "binary" files.
>  
>  So you'll want to use "binary mode" to read/write binary files on 
>  Windows.
>  
>  Thus, use "rb" instead of "r" to read a binary file, and "wb" instead of 
>  "w"
>  to write a binary file.
>  
>  
>  Hope this helps,
>  
>  Bill

Ahh, thanks. I've had little experience with the File class in ruby. 
I'll test it now. It should ::prays:: work.

-- 
Posted via http://www.ruby-forum.com/.
Thread:
Aatch
Tim Hunter
Bill Kelly
Aatch Random
Nobuyoshi Nakada
James Milner

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved