Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!tut.cis.ohio-state.edu!rutgers!psuvax1!psuvm.bitnet!cunyvm!polygraf.bitnet!rubin From: RUBIN@POLYGRAF.BITNET (David Rubin) Newsgroups: comp.sys.atari.st Subject: Fread system call Message-ID: <8505RUBIN@POLYGRAF> Date: 3 Jan 89 14:34:41 GMT Organization: Polytechnic University Computing Center Lines: 22 I am having problems using the Fread system call. This call will either crash my system, or more likely result in 2-3, sometimes 10 bombs, depending on the number of bytes I try to read. Using MWC 2.0, the code is similar to the following: h = Fopen(filename,0); Fread(h,4096L,buf); h is an integer, and buf is a 4096-character array. The file is opened properly, but the Fread bombs. The file is binary, if this makes any difference. I would appreciate hearing from anyone who has successfully used the Fread call and can help me out. Thanks... ------- David Rubin | INTERNET: RUBIN@graf.poly.edu Polytechnic University | BITNET: RUBIN@POLYGRAF Brooklyn, NY | #! rnews