[gets] to break lines on arbitrary character
Open385734b86c14e5bfc7bec5638fa0f4838feb53ebCreated 13 years agoUpdated 13 years ago
Descriptionplain2013-10-13 18:18:04
Suggestion: modify Tcl's stream i/o to accept an arbitrary character, or even character pair, as EOL, so [gets] would be able to break streams into delimited records regardless of the end of record character. Rationale: Sometimes I think it might be useful to replace [read]/scan type code with [gets] where the scan (and, more importantly, the rest-of-stream buffering) was done for you in C ... particularly when/if you have multiple character encodings to consider.
Log in (anonymous is fine) to add a comment.