

Safe HaskellSafe-Infered



Read and write vectors as ASCII text files.

The file format is like:

	VECTOR			-- header
	100			-- length of vector



readVectorFromTextFile :: (Num e, Read e, Unbox e) => FilePath -> IO (Array U DIM1 e)Source

Read a vector from a text file.


writeVectorToTextFile :: (Show e, Repr r e) => Array r DIM1 e -> FilePath -> IO ()Source

Write a vector as a text file.