Skip to main content

ReadList

ReadList["file"] reads all the remaining expressions in a file and returns a list of them. 

ReadList["file",type] reads objects of the specified type from a file, until the end of the file is reached. The list of objects read is returned.

ReadList["file",{type1,type2,…}] reads objects with a sequence of types, until the end of the file is reached.

ReadList["file",types,n] reads only the first n objects of the specified types.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.