Working With Files
- You can read and write to files in a number of different ways
- Writing to files
- Using Print, Princ, or Prin1 - Prints to the file exactly what you would see on the screen
- Use prin1 if you are going to write control characters (i.e. \n) and you want to (load) the file later
- Write-line works much the same as print, but without the quotes. I use it so I know when I am writing to a file, and it organizes things into lines (automatically get a linefeed on the end of the write-line
- Use Princ or Prin1 if you want to write a single character to a file, write-line if you want to write a whole line at a time