Hi, I'm getting an error while using file->bytes to load a moderately large 
file:

> (time (void (file->bytes "my-7.6GB-file")))
; error reading from stream port
;   port: #<path:/Users/greg/my-7.6GB-file>
;   system error: Invalid argument; errno=22
;   context...:
;    /Applications/Racket v7.7/collects/racket/file.rkt:768:6: temp218
;    /Applications/Racket 
v7.7/collects/racket/private/more-scheme.rkt:336:52
;    eval-one-top
;    /Applications/Racket v7.7/share/pkgs/xrepl-lib/xrepl/xrepl.rkt:1478:0
;    /Applications/Racket v7.7/collects/racket/repl.rkt:11:26

Is there a limit to the size of files that can be used with file->bytes?

I was preferring file->bytes because it seems much faster than manually 
reading from a port.  If file->bytes is not appropriate here, can somebody 
recommend another fast approach?

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/e99edda0-06ed-4164-b7bd-46f8a458c6c8o%40googlegroups.com.

Reply via email to