| myFile myStream myLine addrIP mySet |
mySet := Set new.
myFile := 'ws000101.log' asFilename.
myStream := myFile readStream.
[ myStream atEnd ] whileFalse: [
myLine := myStream upTo: Character cr.
addrIP := myLine copyUpTo: $,.
mySet add: addrIP.].
myStream close.
Dialog warn: (mySet size printString).
| myFile myStream myLine addrIP mySet |
mySet := Set new.
myFile := (Dialog request: '파일입력' initialAnswer: 'ws000101.log') asFilename.
myStream := myFile readStream.
[ myStream atEnd ] whileFalse: [
myLine := myStream upTo: Character cr.
addrIP := myLine copyUpTo: $,.
mySet add: addrIP.].
myStream close.
Dialog warn: (mySet size printString).