Smalltalk: Requiem or Resurgence? Push for business application
Ron at USMedRec.com
Wed May 24 14:29:32 UTC 2006
> -----Original Message-----
> From: Yoshiki Ohshima
> Sent: Monday, May 22, 2006 11:16 PM
> > > Ron: A second issue is one of usability and business support.
> > > We have had a
> > > number of people including myself trying to read and write files
> > > understanding CrLfFileStream. This is really an issue for me. I
> > > suggested
> > > that we need to have a way to do aStringOrCollection writeToFile:
> > > or
> > > aStringOrCollection readFromFile: aFile that should just work without
> > > having
> > > to know the ins and outs of the streams or any particular
> > > platform.
> I must have missed this, but what would be the suggested behavior of
> #writeToFile: and #readFromFile:? Can they deal with WideStrings?
I had not considered WideString, my concern is mostly for the reading and
writing of human readable files. Collections should write to a file with
the proper separators for the current platform inserted between items. When
reading a human readable file it should parse the string so that either each
line for the platform becomes an item on a collection or you should get a
string that is has a cr between lines replacing the source separators as
My belief is that helper methods here will help to explain the different
streams; how they are tied to individual platforms, and will help to lower
the cost of entry for working with files.
More information about the Squeak-dev