Re: [BLACKBOX] Simple ASCII text editor example

From: [at]} <Rex>
Date: Fri, 6 Aug 2010 12:28:28 -0500

----boundary-LibPST-iamunique-1046047210_-_-
Content-type: text/plain

        If I were writing it, I would read the file line by line. If the line meets the criterion for saving, write it to a new output file. Clean up the files as desired. I think this is essentially what Doug Danforth was suggesting. You can't beat the program for simplicity, safety, or low memory use.

        Reading and writing to the same file obviously entails a lot of complication and fancy programming, and you hope everything goes well. In your case it did not go well.

Rex Couture


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1046047210_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIFx0YWIgSWYgSSB3ZXJlIHdyaXRpbmcgaXQsIEkg
d291bGQgcmVhZCB0aGUgZmlsZSBsaW5lIGJ5IGxpbmUuICBJZiB0aGUgbGluZSBtZWV0cyB0aGUg
Y3JpdGVyaW9uIGZvciBzYXZpbmcsIHdyaXRlIGl0IHRvIGEgbmV3IG91dHB1dCBmaWxlLiAgQ2xl
YW4gdXAgdGhlIGZpbGVzIGFzIGRlc2lyZWQuICBJIHRoaW5rIHRoaXMgaXMgZXNzZW50aWFsbHkg
d2hhdCBEb3VnIERhbmZvcnRoIHdhcyBzdWdnZXN0aW5nLiAgWW91IGNhbid0IGJlYXQgdGhlIHBy
b2dyYW0gZm9yIHNpbXBsaWNpdHksIHNhZmV0eSwgb3IgbG93IG1lbW9yeSB1c2UuXHBhcg0KXHBh
cg0KXHRhYiBSZWFkaW5nIGFuZCB3cml0aW5nIHRvIHRoZSBzYW1lIGZpbGUgb2J2aW91c2x5IGVu
dGFpbHMgYSBsb3Qgb2YgY29tcGxpY2F0aW9uIGFuZCBmYW5jeSBwcm9ncmFtbWluZywgYW5kIHlv
dSBob3BlIGV2ZXJ5dGhpbmcgZ29lcyB3ZWxsLiAgSW4geW91ciBjYXNlIGl0IGRpZCBub3QgZ28g
d2VsbC5ccGFyDQpccGFyDQpSZXggQ291dHVyZVxwYXINClxwYXINClxwYXINCi0tLS1ccGFyDQpU
byB1bnN1YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBib2R5ICJTSUdOT0ZGIEJMQUNLQk9Y
IiB0byBMSVNUU0VSVkBMSVNUUy5PQkVST04uQ0hccGFyDQp9
----boundary-LibPST-iamunique-1046047210_-_---
Received on Fri Aug 06 2010 - 19:28:28 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:30 UTC