|-|UB`s ? 
Author Message
 |-|UB`s ?

    trying to enter HEX 00 into a file has proven a puzzle

    the REXX version       used defaults with a message that the sting

    between.................... Anyway Anyway to Write HEX 00 to a file?



Tue, 15 Jul 1997 01:35:20 GMT  
 |-|UB`s ?
On Thu, 26 Jan 1995 09:35:20 -0800 Manley Hubbell said:
Quote:
>    trying to enter HEX 00 into a file has proven a puzzle

>    the REXX version       used defaults with a message that the sting

>    between.................... Anyway Anyway to Write HEX 00 to a file?

Try ...
record = "This is a string containg x'00'("||x2c(00)||")"
or use a string function to plug  in tyhe value.

--------

Systems Programmer -- Team OS/2
NYS Legislative Bill Drafting Commission
1450 Western Avenue, 3rd floor
Albany, NY 12203
Voice:(518)458-5114  FAX:(518)458-5108

"Help stamp out slogans in signature files"



Tue, 15 Jul 1997 00:05:13 GMT  
 |-|UB`s ?

Quote:

>    trying to enter HEX 00 into a file has proven a puzzle

>    the REXX version       used defaults with a message that the sting

>    between.................... Anyway Anyway to Write HEX 00 to a file?

How about

call lineout filename, '00'x

Seems to work, even from REXXTRY.

*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*==*=*=*=*=*=*=*=*=*=*=*=*=*=*

*        Automated Operations Coordinator           E  S       *
*          for Special Materials Cataloging          A  /      *
*        Library of Congress                          M  2     *
*The above ravings do not represent the officical views of the *
*Library of Congress, they are the products of a WARPed mind.  *
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=



Wed, 16 Jul 1997 02:48:07 GMT  
 |-|UB`s ?

Quote:
>    trying to enter HEX 00 into a file has proven a puzzle

>    the REXX version       used defaults with a message that the sting

>    between.................... Anyway Anyway to Write HEX 00 to a file?

call lineout 'file',x2c('00'x)

--
Ron van Wier
______________________________________________________________________________



Wed, 16 Jul 1997 18:39:21 GMT  
 |-|UB`s ?

Quote:


>>    trying to enter HEX 00 into a file has proven a puzzle

The syntax:        '00'x       denotes this character.  You can build a
string from it in the usual way, like this

  astring = "This character: " || '00'x || "is a NUL character."

and write it to a file in the same way as for any other string.

You can not type it into the program directly because on most systems
that are implemented in C this character is a string terminator.  When
the interpreter reads a line from the program which says:


then it is quite likely that the interpreter thinks the line says:

  astring = "This character:


the system inserted to terminate the string after it read the line from the
program on behalf of the interpreter (note that not all interpreters suffer
this problem, however. :-) ).

Quote:
>call lineout 'file',x2c('00'x)

This answer performs the conversion twice and will not work.  An alternative
to writing '00'x is writing x2c("00") because the x2c function converts hex
digits to the characters they represent.  But using '00'x and x2c at the
same time is incorrect.

Ian Collier - Departmental Lecturer (and perpetual postgrad student) -

Building, Parks Road, Oxford OX1 3QD - WWW Home Page (including REXX
section): http://www.comlab.ox.ac.uk/oucl/users/ian.collier/index.html

New to this group?  Answers to frequently-asked questions can be had from
ftp://rexx.uwaterloo.ca/pub/rexxfaq.txt .



Tue, 29 Jul 1997 19:55:03 GMT  
 |-|UB`s ?


: >>    trying to enter HEX 00 into a file has proven a puzzle

: Ian Collier - Departmental Lecturer (and perpetual postgrad student) -

: Building, Parks Road, Oxford OX1 3QD - WWW Home Page (including REXX
: section): http://www.comlab.ox.ac.uk/oucl/users/ian.collier/index.html

: New to this group?  Answers to frequently-asked questions can be had from
: ftp://rexx.uwaterloo.ca/pub/rexxfaq.txt .
   yeah,  anywy thanks ,  also for the while, I have 8 Timex 1000`s I
   would like to plug a REXX rom into  IF     you know of where to get
   A REXX ROM for 8 Timex 1000`s                         |-|UB`s



Thu, 31 Jul 1997 05:34:38 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. |-|UB`s xxER

2. |-|UB`s \/\/rex`s Scrabble

3. |-|UB`s \/\/rex`s

4. |-|UB`s ode2rex

5. |-|UB`s (P$U{ODIN[REXX]}) ?

6. |-|UB`s (P$U{UNIX[REXX]})

7. |-|UB`s Clubs

8. |-|UB`s shards

9. |-|UB`s Rx $ ?

10. |-|ub`s Rex

11. |-|UB`s (P$U{odin[rexx<say yes>]})

 

 
Powered by phpBB® Forum Software