[Gambas-user] write to file question
Jussi Lahtinen
jussi.lahtinen at ...626...
Tue Aug 16 18:31:19 CEST 2011
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
>
More information about the User
mailing list