|
Reading file into Shout Workspace: msg#00082lang.smalltalk.squeak.beginners
Just in case this might be helpful to someone, here's an example of how to read text from a file into an appropriately named Workspace so you can use the Workspace windowbar menu to save the contents of the Workspace back into the same file easily. (SHWorkspace new openLabel: 'myWorkspace') contents: ((FileStream fileNamed: 'myWorkspace.text') contentsOfEntireFile); changed: #contents. -- Ken G. Brown sq3.10-7159dev08.04.1 + LPF + Sake + MiorFixesStable + MinorFixesUnstable, Squeak 3.8.18beta1U.app, MacOS X 10.5.2
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Magma and Tweak, Michael van der Gulik |
|---|---|
| Next by Date: | Magma and Tweak, Dr Keith A. Morneau |
| Previous by Thread: | Magma and Tweak, Dr Keith A. Morneau |
| Next by Thread: | Re: Beginners Digest, Vol 24, Issue 17, Dr Keith A. Morneau |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |