[Oberon] Stream usage.

peter at easthope.ca peter at easthope.ca
Sat May 27 17:57:09 CEST 2023


From:	peter at easthope.ca
Date:	24 May 2023 12:46:36 -0700
> Better to use Base64.Encode in NetSystem.

CArchive2.ReadHeader in A2 examples.

I've added this in Unix.Oberon.NetSystem.Mod.

VAR r: Streams.Reader;

IF service = "smtp"
	Out.String("User and pwd available.  Base64 encode and store in p.passwd."); Out.Ln();
	r.Char(0X); r.String(p.user); r.Char(0X); r.String(p.passwd);
	Base64(r);
	r.??(p.passwd, ??)
END;

Still more guesswork than comprehension.  =8~/

TTFN,              ... P.

- 
mobile: +1 778 951 5147
VoIP:   +1 604 670 0140



More information about the Oberon mailing list