[net.micro.mac] Reading An Application File From MSBasic 2.1

egv@aicchi.UUCP (Vann) (08/29/86)

I wrote a small application in MS Basic 2.1 the other day and posted it
to the net (net.sources.mac).  It was designed to make it possible to
dump ANY files contents in HEX along with the printable ASCII values
ala your standard hex dump mainframe utility.

What I noticed was that when you specify that ANY file can be opened
and then try to read in an application it immediately detects and EOF
condition. Why? Is there something about the structure of applications
(i.e. resource/data forks) that explains these circumstances?

Thanks in Advance,

-- 
				Eric Geoffrey Vann
				Analysts International (Chicago Branch)
				(312) 882-4673
				..!ihnp4!aicchi!egv

graifer@net1.UCSD.EDU (Dan Graifer) (09/02/86)

In article <797@aicchi.UUCP> egv@aicchi.UUCP (Vann) writes:
>I wrote a small application in MS Basic 2.1 ... and posted it ...
>dump ANY files contents in HEX along with the printable ASCII values
...
> try to read in an application it immediately detects and EOF

I'm probably not expert enough to be answering this, but as I've seen no other
here goes:  Isn't the code of an application stored in the CODE resource?

Dan Graifer