Page 1 of 1

File size is 0 when creating a text file

Posted: 9 Jul 2014 12:50
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

Posted: 9 Jul 2014 23:49
by Thomas Linder Puls
It sounds like you forget to close the stream:

Code: Select all

Stream:close()