TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: BILL BIRRELL
from: Robin Sheppard
date: 1998-09-18 00:18:00
subject: music

BB> Strictly speaking Robin is right, but if you are only interested
 BB> in MSDos,  and have a compiler which supports language extensions, then
 BB> filesize(),  fstat() or stat() will do it, but these are not part of
 BB> the ANSI standard. 
 BB> If you wish to stick to the ANSI standard, you must fopen( a
 BB> stream) then  fseek() to the end of the file, and either start your
 BB> reading from there, or  perform an fgetpos() or ftell() and use the
 BB> information so obtained. The  interesting thing is what you don't
 BB> mention - how your friend extends the exe  file length without messing
 BB> up the exe header. :-) 

   Couldn't one just open the .EXE file for a binary append, then tack 
   the music data on the end?  This would ater the file size, so the 
   EOF check wouldn't work, but it wouldn't mess up the header.
   
... Backup not found: [A]bort [R]etry [P]anic.
___ Blue Wave/DOS v2.30 [NR]

--- EzyQwk V1.48g0 01fa0167
* Origin: Milky Way, Langley, BC [604] 532-4367 (1:153/307)
SEEN-BY: 396/1 622/419 632/0 371 633/260 267 270 371 634/397 635/506 728 810
SEEN-BY: 639/252 670/218
@PATH: 153/307 8086 800 140/1 270/101 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.