File tree Expand file tree Collapse file tree 5 files changed +18
-10
lines changed
repository/Grease-GemStone-Core.package Expand file tree Collapse file tree 5 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 11file- library
22contentsOfFile: aString binary: aBoolean
3- | stream dir file |
4- [
5- file := GsFile openReadOnServer: aString.
6- [stream := RWBinaryOrTextStream on: file contents.
7- aBoolean
8- ifTrue: [ stream binary ]
9- ifFalse: [ stream ascii ].
10- ^ stream contents ] ensure : [ stream close ]] ensure : [ file close ].
3+ ^ self fileStreamOn: aString do: [ :stream | stream contents ] binary: aBoolean
Original file line number Diff line number Diff line change 1+ file- library
2+ fileExists: aString
3+ ^ (FileDirectory forFileName: aString) exists
Original file line number Diff line number Diff line change 1+ file- library
2+ fileStreamOn: aString do: aBlock binary: aBoolean
3+ | stream dir file |
4+ [
5+ file := GsFile openReadOnServer: aString.
6+ [stream := RWBinaryOrTextStream on: file contents.
7+ aBoolean
8+ ifTrue: [ stream binary ]
9+ ifFalse: [ stream ascii ].
10+ ^ aBlock value: stream ] ensure : [ stream close ]] ensure : [ file close ].
Original file line number Diff line number Diff line change 99 "asMethodReturningString:named:" : " dkh 04/25/2011 20:21" ,
1010 "base64Decode:" : " dkh 11/06/2009 08:41" ,
1111 "compile:into:classified:" : " dkh 11/06/2009 08:41" ,
12- "contentsOfFile:binary:" : " DaleHenrichs 12/03/2010 16:33 " ,
12+ "contentsOfFile:binary:" : " JohanBrichau 10/11/2014 02:26 " ,
1313 "defaultDispatcherName" : " dkh 11/06/2009 08:41" ,
1414 "deprecationExceptionSet" : " JohanBrichau 04/19/2014 10:55" ,
1515 "directoriesIn:" : " JohanBrichau 02/15/2014 07:02" ,
1818 "doCommitTransaction" : " dkh 11/06/2009 08:41" ,
1919 "doTransaction:" : " JohanBrichau 03/21/2014 17:45" ,
2020 "ensureExistenceOfFolder:" : " DaleHenrichs 12/03/2010 16:28" ,
21+ "fileExists:" : " JohanBrichau 10/11/2014 02:18" ,
22+ "fileStreamOn:do:binary:" : " JohanBrichau 10/11/2014 02:27" ,
2123 "filesIn:" : " DaleHenrichs 09/02/2010 15:45" ,
2224 "isProcessTerminated:" : " dkh 11/06/2009 08:41" ,
2325 "label" : " DaleHenrichs 06/02/2010 16:39" ,
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments