--- title: "Working With Pascal Files" type: "article" slug: "working-with-pascal-files" url: "http://localhost/article/working-with-pascal-files/" markdown_url: "http://localhost/article/working-with-pascal-files.md" published_at: "2026-02-14T14:14:03+00:00" modified_at: "2026-02-14T14:14:04+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "A reader wrote this month with a problem that is certainly not unique to programmers who are trying to learn Pascal. His problem was how to do I/O. While I went over his sample code, I found a number of other basic errors, again of a type that are not uncommon to novices to this…" category: - name: "QL Report" slug: "ql-report" taxonomy: "category" url: "http://localhost/category/periodicals/ql-report/" post_tag: - name: "Pascal (programming language)" slug: "pascal" taxonomy: "post_tag" url: "http://localhost/tag/pascal/" - name: "QL" slug: "ql" taxonomy: "post_tag" url: "http://localhost/tag/ql/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Sinclair QL" slug: "sinclair-ql" taxonomy: "model" url: "http://localhost/model/sinclair-ql/" indiv: - name: "Mel MacKaron" slug: "mel-mackaron" taxonomy: "indiv" url: "http://localhost/indiv/mel-mackaron/" publication_r: id: 39073 title: "QL Report" type: "periodical" url: "http://localhost/periodical/ql-report/" authors_r: - name: "Mel MacKaron" slug: "mel-mackaron" taxonomy: "indiv" url: "http://localhost/indiv/mel-mackaron/" volume: "3" issue: "10" issues_articles: - id: 39095 title: "QL Report v3 n10" type: "issue" url: "http://localhost/issue/ql-report-v3-n10/" pages: "3-4" pubdate: "October 15, 1987" archive_link: false --- # Working With Pascal Files A reader wrote this month with a problem that is certainly not unique to programmers who are trying to learn Pascal. His problem was how to do I/O. While I went over his sample code, I found a number of other basic errors, again of a type that are not uncommon to novices to this language. Following is his listing, a general commentary on the errors and how to avoid them, and a sample program which performs simple I/O.