Concatenating binary files?
jhouchin at texoma.net
Tue Apr 1 02:19:04 UTC 2003
Ned Konz wrote:
> On Monday 31 March 2003 02:51 pm, Jimmie Houchin wrote:>
>>I failed to edit the email end of of lines on the fileDir. So I
>>guess this cause the StandardFileStream to fail initialization?
> Yes, you probably don't have a directory with a CR in the middle of
> its name.
> In production code you should check for whether opens succeeded or
> not. Using Tim's code:
> fileDir := FileDirectory default directoryNamed:'C:\Documents and
> Documents\My Music\MP3\Alexander Scourby\waves'.
> fileDir exists ifFalse: [ ... do something ... ].
> wave3 := fileDir fileNamed: 'Genesis 37k.wav'. "Will create/clobber
> a file"
> wave2 := fileDir oldFileNamed: 'Genesis 37b.wav'. "Will pop up a
> wave1 := fileDir oldFileNamed: 'Genesis 37a.wav'. "Will pop up a
Thanks for the education. I got busy at work and haven't had the
opportunity to analyse Tim's code yet. Thanks for the pointer about
production code and the requesters. More best practice principles. :)
Maybe I'm not the only one learning from my mistakes. :)
More information about the Squeak-dev