[Newbies] Binary file I/O performance problems

David Finlayson dfinlayson at usgs.gov
Wed Sep 3 00:09:40 UTC 2008


Thanks for the style pointers. I'm a scientist, not a programmer, so
it will be rough going while I learn.

What I wanted was an exception (try/except) in case any of the reads
failed. Corrupt files are an expected case that should be handled by
the program. So I can't crash while reading (or writing). Does Squeak
have exceptions? Or is there a Smalltalk pattern for this "try to
execute this, do something else if it fails"? That answer should
probably go into another thread.

David


More information about the Beginners mailing list