David B
02/22/2022, 11:01 PMFile.getReader().readUntil(',')
doesn't work unless I also call File.getContents()
??!?
Even if I'm doing nothing with the contents, just logging it:David B
02/22/2022, 11:06 PMfile.create(…)
getting the file.File object via file.load(…)
and getting the reader from that means that you don't have to call File.getContents()
My theory is that even though file.create(…)
says that it returns a file.File object, it's not quite a fully-fledged file.File object until you call .getContents()
on itDavid B
02/22/2022, 11:08 PM.save()
on the file first (instead of .getContents()
) also worksDavid B
02/22/2022, 11:26 PMGerald Gillespie
02/23/2022, 12:19 AMfile
record/stub without the contents of the file much of the time.
if you’re arguing that getReader()
should do this automatically, then you’re really only saving yourself some typing but file contents can change without file
stub changing so maybe it’s actually what you want?David B
02/23/2022, 2:20 AMfile.create()
returns a file.File object, which by all accounts you should be able to use getReader()
on.
I can't get the time back I spent debugging, but would settle for the docs of getReader()
getting amended to mention this