Denver Braughler wrote:
Bernd Mueller wrote:
Set file=##class(%File).%New("file.txt") ... file.SizeGet()
I believe that method resolves to $ZU(140,1,"file.txt").
Wrong!
SizeGet() is a method from the Stream-Interfaxe and it works ...
file.txt: --------- This is a line 1 of text, current size is 0 This is a line 2 of text, current size is 45 This is a line 3 of text, current size is 91 This is a line 4 of text, current size is 137 This is a line 5 of text, current size is 184 This is a line 6 of text, current size is 231 This is a line 7 of text, current size is 278 This is a line 8 of text, current size is 325 This is a line 9 of text, current size is 372 This is a line 10 of text, current size is 419
I don't know whether it works on every platform. What platforms have you tried it on?
on Windows. But i think it will work on every platform.
(Of course, I don't actually code the $ZU() myself. I also use the ##class(%File) wrapper.)
