[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | -={ H A C K E R S }=- |
Notice: | Write locked - see NOTED::HACKERS |
Moderator: | DIEHRD::MORRIS |
|
Created: | Thu Feb 20 1986 |
Last Modified: | Mon Aug 03 1992 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 680 |
Total number of notes: | 5456 |
153.0. "key[0,32]=34; read/key=&key" by SPRITE::OSMAN () Mon Aug 26 1985 14:17
I'm attempting to read the shelf database from a .com file. Here's a
hypothetical code fragment:
$ key = ""
$ key[0,32] = 33
$ read chan /key=&key record
That one works fine. However, this doesn't:
$ key = ""
$ key[0,32] = 34
$ read chan /key=&key record
Why ? Because 34 is ascii for a double quote !
Can anyone think of a hack to get around it ? More specifically, given
a file keyed upon four-character strings, how can a record be read from
dcl whose key contains a double quote mark AND at least one null ?
(If there weren't a null, things like /key="""abc" would win.)
The best I've come up with so far is to read a record NEAR and BEFORE the
desired one, and them home in by reading sequential records (i.e. omit the
/KEY). Anyone have a better idea ?
/Eric
T.R | Title | User | Personal Name | Date | Lines
|
---|