delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/11/18:22:49

Date: Wed, 11 Jun 1997 15:22:20 -0700 (PDT)
From: Jeff James <jamesj AT wsunix DOT wsu DOT edu>
To: djgpp AT delorie DOT com
Subject: writing a program that reads .txt files
Message-ID: <Pine.OSF.3.95.970611151232.6412A-100000@unicorn.it.wsu.edu>
MIME-Version: 1.0

I have recently downloaded a copy of djgpp v2.01 and have been using it
with the rhide IDE.  I have learned how to write and compile basic
programs but have been working for 3 days on getting my programs to read
.txt files from a dos diretory. 

The things that I have been trying to accomplish are:  1. Open a text file
i.e test.txt 2. store each line of the text file into a separate string. 
3.  display the strings in stdout.  and 4. Pause stdout before scrolling
of the screen begins.  5. close test file. 

As I have said, I've spend a considerable amount of time both trying
different lib functions and reading your documentation.  Any help in
accomplishing these task would be greatly apreciated. 

Jeffrey L. James,   jamesj AT wsu DOT edu

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019