Please bare in mind that textio functions cannot be synthesised - they can only be used for getting data into/out of a testbench (eg. a stimulus file) and works in Xilinx to set up initial memory values (doesnt work in quartus).
I found this link which seems to have something on textio from about slide 13 onwards
http://www.people.vcu.edu/~rhklenke/tutorials/vhdl/modules/m13_23/sld014.htm there are 2 main libraries, std.textio which contains read/write functions for writing basic types (integer, string, character, bit etc) and then theres ieee.std_logic_textio which allows you to read/write std_logic and std_logic_vector. For the latter, you can read/write binary, octal or hex
Any more questions, just fire away.