readcsv function without limit parameter

Redmine #5624

From Ted:
readcsv(): new function with acceptance test
(cherry picked from commit 5d73f3bc06c6a8e08013b23b96e01a573d801ac7)