search for: fh1

Displaying 2 results from an estimated 2 matches for "fh1".

Did you mean: f1
2004 Nov 16
0
Re: Win32, file descriptors and rb_io_check_writable()
Hi, > >Thank you very much Park. There is one curious difference I noticed >with the write operations. It seems that there is a line ending issue >between a file descriptor opened with File.open vs File.nopen. You >can see this easily enough by doing something like this: > >fh1 = File.open("test1.txt","w+") >fh1.print "hello\nworld\n" >fh1.close > >Open this up with notepad - looks fine. Now try this: > >fh2 = File.nopen("test2.txt",nil,nil,File::OPEN_ALWAYS) >fh2.print "hello\nworld\n" >fh2.close...
2007 Oct 09
5
Playing with ReadFileScatter()
Hi all, Looking at the IO.readlines source in io.c, it looks to me like they grab 8k chunks, split on the input record separator, and buffer accordingly. Since it looks like ReadFileScatter() does some of that work automatically (in page file sized chunks), I thought I''d give it a try. Here''s what I''ve got, but it doesn''t work. I have an incorrect parameter