File size is 0 when creating a text file

Discussions related to Visual Prolog
karenjang
Posts: 1
Joined: 8 Jul 2010 17:24

File size is 0 when creating a text file

Unread post by karenjang »

Application is supposed to write output as a text file. But the size of file becomes 0 byte at the end of processing even though all data is saved into database correctly indicating the process is successful.

I suspect permission setup on the machine. Is there any way I can trobleshoot a root cause?

Thanks
User avatar
Thomas Linder Puls
VIP Member
Posts: 1180
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

It sounds like you forget to close the stream:

Code: Select all

Stream:close()
Regards Thomas Linder Puls
PDC
Post Reply