Return-Path: lccheung@usc.edu Delivery-Date: Fri Oct 31 14:17:26 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from msg-scanner1.usc.edu (msg-scanner1.usc.edu [128.125.137.210]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id m9VLHQO3022163 for ; Fri, 31 Oct 2008 14:17:26 -0700 Received: from msg-mx8.usc.edu ([128.125.137.26]) by msg-scanner1.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0K9M00BKQHAUXU60@msg-scanner1.usc.edu> for cs551@merlot.usc.edu; Fri, 31 Oct 2008 14:37:26 -0700 (PDT) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.225]) by msg-mx8.usc.edu (Postfix) with ESMTP id 91F497F2B for ; Fri, 31 Oct 2008 14:37:25 -0700 (PDT) Received: by rv-out-0506.google.com with SMTP id k40so1302206rvb.15 for ; Fri, 31 Oct 2008 14:37:25 -0700 (PDT) Received: by 10.142.44.13 with SMTP id r13mr5634732wfr.344.1225489045316; Fri, 31 Oct 2008 14:37:25 -0700 (PDT) Received: from ?128.125.163.179? (cognac.usc.edu [128.125.163.179]) by mx.google.com with ESMTPS id 29sm6415635wfg.0.2008.10.31.14.37.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 31 Oct 2008 14:37:24 -0700 (PDT) Date: Fri, 31 Oct 2008 14:37:15 -0700 From: Leslie Cheung Subject: Re: fprintf() In-reply-to: <200810312040.m9VKexU2002079@bourbon.usc.edu> To: cs551@merlot.usc.edu Message-id: <490B7A8B.1000905@usc.edu> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: <200810312040.m9VKexU2002079@bourbon.usc.edu> User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) > Someone wrote: > > > When different nodes try to write to the file, sometimes the file is blank > > for some nodes...all run the same code ! > > > > What could be the problem ? > Have you closed the file after writing (by calling fclose())? --Leslie