home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!cs.utexas.edu!gateway
- From: SURI%TSU.bitnet@CUNYVM.CUNY.EDU (suri)
- Newsgroups: comp.ai.shells
- Subject: (none)
- Date: 18 Aug 1992 21:49:40 -0500
- Organization: UTexas Mail-to-News Gateway
- Lines: 14
- Sender: daemon@cs.utexas.edu
- Message-ID: <01GNQQ59B8Q891VV49@TSU.BITNET>
- NNTP-Posting-Host: cs.utexas.edu
- X-Unparseable-Date: Tue, 18 Aug 1992 21:49 MULTINET_TIMEZONE
-
- hello
- could anyone tell me how to open files and read & write into the files using a
- if or while loops. I need to use this to compare the contents of the two files.
- First the user is asked several questions and a part of the output goes into
- one file and then the user be asked the same questions and the part of output
- should go to another file and then the contents in two files are compared.
- I tried using the while statement it did not work. Any suggestions are welcome.
- Most of the times either the rule itself not evoked or i/o error occured.
- I really appreciate your help in this. I am new to the programming world.
-
- Please respond directly to the address given:sudarshan@tsu.bitnet
-
- thank you
- sudarshan
-