Fixed bugs based on suggestions
Changed || to OR
Converted statements to appropriate calls
Instead of using read_file(), using file_get_contents()
Added parameter for delimiter

Signed-off-by: Aniket Pant <me@aniketpant.com>
Documentation updated to intoduce new parameter

Signed-off-by: Aniket Pant <me@aniketpant.com>