Groups > Superbase > Superbase NG > Re: fsfileoutput.putstring()




fsfileoutput.putstring()

fsfileoutput.putstring()
Thu, 20 Sep 2007 20:18:00 +080
It works with small files but is this a reasonable thing to do with large 
files?
fpo.putstring(fpi.getstring(length = .inf,charsize = 1),charsize = 1)
where fpo =@ fsfileoutputstream and fpi =@ fsfileinputstream
John 

Post Reply
Re: fsfileoutput.putstring()
Mon, 24 Sep 2007 11:37:32 +010
John Roberts wrote:
> It works with small files but is this a reasonable thing to do with large 
> files?
> fpo.putstring(fpi.getstring(length = .inf,charsize = 1),charsize = 1)
> where fpo =@ fsfileoutputstream and fpi =@ fsfileinputstream

That really depends on the size of the file and what you are running on.
I see no problem using this with files up to several megabytes in size
on a modern platform. At the same time, if the file is not in Unicode,
you probably should be using .getblob() and .putblob(), since the memory
requirements would be halved.

Post Reply
about | contact