[Gambas-user] write to file question

nando nando_f at ...951...
Wed Aug 17 11:30:16 CEST 2011


I agree.  The code looks correct.


---------- Original Message -----------
From: Jussi Lahtinen <jussi.lahtinen at ...626...>
To: mailing list for gambas users <gambas-user at 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 <wally at ...2037...> 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 at 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------





More information about the User mailing list