Squeakでマターリ語りましょうや
■ このスレッドは過去ログ倉庫に格納されています
0150147
2006/06/11(日) 18:56:50動かん。
fileStream := FileStream readOnlyFileNamed:'log.bin'.
fileStream binary.
fileStream position: 48.
b1 := Integer new.
b2 := b1 byte1:(fileStream next) byte2:(fileStream next) byte3:(fileStream next) byte4:(fileStream next).
Transcript cr; show: b2.
えーと、byte1:...はクラスメソッドだからオブジェクトb1は必要ないのか。
■ このスレッドは過去ログ倉庫に格納されています