I agree. The code looks correct.
---------- Original Message ----------- From: Jussi Lahtinen <jussi.lahti...@gmail.com> To: mailing list for gambas users <gambas-user@lists.sourceforge.net> Sent: Tue, 16 Aug 2011 19:31:19 +0300 Subject: Re: [Gambas-user] write to file question > What is your Gambas version and operating system? > Can you send demonstration project? > Code in your mail seems to be OK, so I think the problem is somewhere else. > > Jussi > > On Mon, Aug 15, 2011 at 15:03, wally <wa...@voosen.eu> wrote: > > > Hi, > > > > i try to write data to a new file in the following way: > > > > Public hFile As File 'because i need to write in a > > serial_read_event > > > > hFile = Open Application.Path &/ "prot.log" For Write Create > > > > Write #hFile, Hex$(iByte, 2) > > > > hFile.Close > > > > Problem is that the filesize is growing during run and the containing data > > is > > as wanted. If i break the execution all is OK. > > When i use hFile.Close the file remain but is empty. > > > > What i need to do ? > > thank you > > wally > > > > > > ------------------------------------------------------------------------------ > > uberSVN's rich system and user administration capabilities and model > > configuration take the hassle out of deploying and managing Subversion and > > the tools developers use with it. Learn more about uberSVN and get a free > > download at: http://p.sf.net/sfu/wandisco-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user