Here is a sample of the TXT file we are reading with the code. This way if you run into an unhandled error, the file isn’t stuck open, and in the case of shared files, you are not locking the file for an extended amount if time. Keep the code to a minimum while the file is open. Most times when you open a file for read or write, you should open the file, perform the entire operation, then close the file. In this example, the TXT file contains coordinates, and the code will draw either points or lines. ![]() Here is a simple example of how to read a TXT file into lisp and then do something with the contents.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |