The 'file' which you are simulating almost certainly has a newline at the end of every (including the last) line.
In fact it doesn't. At least you only said 'almost' certainly. LOL. The json file is part of an archive that is exported from my phone. I wrote a text extractor to get all my memos from these archive files. The json file it extracts has no newline on the last line hence this discussion.
In reply to Re^2: Is a here-doc a good way to retrieve data file contents for testing?
by Lotus1
in thread Is a here-doc a good way to retrieve data file contents for testing?
by Lotus1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |