All pastes #947518 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-03-18 15:33 UTC
rendered paste body
fun fileReader(infile: string, crossing: string) =
	let
		val ins = TextIO.openIn infile
		val file = "" : string
		fun helper(line: string option) =
			case line of
				NONE => (TextIO.closeIn ins)
				| SOME l => (file ^ l)
	in
		helper(TextIO.inputLine ins)
	end;