Created
April 13, 2010 17:22
-
-
Save garretraziel/364848 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/gst -f | |
Object subclass: Automat [ | |
oddelejMezery: soubor uloz: soubor2[ | |
|vstup vystup retezec| | |
vystup:=FileStream open: soubor2 mode: FileStream write. | |
vstup:=FileStream open: soubor mode: FileStream read. | |
[ vstup atEnd ] whileFalse: [ | |
retezec := vstup upTo: Character space. | |
vystup nextPutAll: retezec. | |
]. | |
vystup close. | |
vstup close. | |
] | |
] | |
Transcript show: 'Cesta k prvnimu: '. | |
soubor1:=stdin nextLine. | |
Transcript show: 'Cesta kam ulozit: '. | |
soubor2:=stdin nextLine. | |
Automat new oddelejMezery: soubor1 uloz: soubor2. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment