Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!umich!ox.com!math.fu-berlin.de!fauern!unido!rwthinf!cip-s06!wolfram From: wolfram@cip-s06.informatik.rwth-aachen.de (Wolfram Roesler) Newsgroups: comp.sys.atari.st.tech Subject: Re: How store extra data at the end of an executable? Message-ID: Date: 11 Apr 91 10:50:09 GMT References: <5796@mcrware.UUCP> <615@uqcspe.cs.uq.oz.au> Sender: news@rwthinf.UUCP Lines: 16 warwick@cs.uq.oz.au (Warwick Allison) writes: >Your program should Fseek backwards from the end of the .PRG file, to the >start of the additional data, then read it. The problem is again that it's a real hard job for a prg to find it's own executable. Dont rely on it being in the current directory. Dont rely on finding the name in argv[0]. The problem in this case is primarily to find the data in memory, since there is no reliable way to find it on the disk. There was a discussion in comp.lang.c about finding the executable file some time ago, and it convinced me that this is not generally (sometimes even not at all) possible. Regards Okami-san