Writing to file-Reading from file?

BlitzMax Forums/BlitzMax Beginners Area/Writing to file-Reading from file?

First, can you incbin text files?

I have a factory in my game where people are able to build their own puzzle. Each tile is stored as a number from 1-30 in the array. If i wanted to write this information to a text file what commands would I use? Also the same for reading it back in.

Do I use writeint(), Readint() or one of the others like writebyte,readbyte?

a code sample would be nice. I've looked at the docs but the commands are not documented properly (no example given ect.).