New file_to_str function
New file_to_str function

Also, added close() to file_to_list function.

Change-Id: If9aaef919347ff8afafbf643b14d58cb16e215bc
Signed-off-by: Michael Walsh <10404802c7de463f402c4a18638106ca1b12ef61@us.ibm.com>

openbmc/openbmc-test-automation,openbmc/openbmc-test-automation