I need to read a text file character by character in SMLNJ and store it in a list. The file consists of one line with numbers, without spaces or any form of separation. My question is how do I get a single character from the file and add it to the list of characters?
Example:
12345678
Result:
val input = [1, 2, 3, 4, 5, 6, 7, 8]