🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #296

Representing bytes in hex

#296
From: Luke Vanderfluit
Date: Fri, 12 Jan 2001 06:23
15 lines
1577 bytes
Hi,

Who can tell me how to represent my output in hex.
I want to read a number of bytes from a file, then replace them with
other bytes.
I can read the bytes OK, but how to represent them in hex?

L

--
  Luke Vanderfluit

  Phone 61 8 8556 6112

  Aldinga Beach, South Australia
Technical Details
Message-ID: <3A5EA2DA.E5EEED27@chipcity.com.au>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!harbinger.cc.monash.edu.au!newsfeed.ozemail.com.au!ozemail.com.au!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10a146,e0719ed8420f42f6,start
X-Google-Attributes: gid10a146,public
X-Google-Thread: 113ae9,e0719ed8420f42f6,start
X-Google-Attributes: gid113ae9,public
X-Google-Thread: 10d6db,e0719ed8420f42f6,start
X-Google-Attributes: gid10d6db,public
X-Google-ArrivalTime: 2001-01-11 22:26:04 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!harbinger.cc.monash.edu.au!newsfeed.ozemail.com.au!ozemail.com.au!not-for-mail
Message-ID: <3A5EA2DA.E5EEED27@chipcity.com.au>
From: Luke Vanderfluit <luke@chipcity.com.au>
X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.12-20 i586)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: aus.computers.java,comp.lang.java.help,comp.lang.java.programmer
Subject: Representing bytes in hex
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 18
NNTP-Posting-Host: 1cust48.tnt1.willunga.au.da.uu.net
X-Trace: ozemail.com.au 979280632 210.84.166.176 (Fri, 12 Jan 2001 17:23:52 EST)
NNTP-Posting-Date: Fri, 12 Jan 2001 17:23:52 EST
Organization: OzEmail Ltd, Australia
Distribution: world
Date: Fri, 12 Jan 2001 16:53:22 +1030