🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: net.micro.atari
3 messages
3 total messages Started by Eric Terrell Tue, 28 Jan 1986 19:11
File I/O in TDI Modula-2
#2305
Author: Eric Terrell
Date: Tue, 28 Jan 1986 19:11
8 lines
833 bytes
How does one open a disk file for reading with TDI Modula-2?

I have tried to get OpenInputFile in the InOut module with
unsuccessful results.

If anyone has this compiler, please let me know how you have
gotten disk files to work.
Re: File I/O in TDI Modula-2
#2300
Author: Steve Tynor
Date: Thu, 30 Jan 1986 16:20
22 lines
1373 bytes
In article <8601291811.AA23787@ucbvax.berkeley.edu> terrell@OHIO-STATE.CSNET (Eric Terrell) writes:
>
>How does one open a disk file for reading with TDI Modula-2?
>
>I have tried to get OpenInputFile in the InOut module with
>unsuccessful results.
>
>If anyone has this compiler, please let me know how you have
>gotten disk files to work.

I've used both OpenInput (from InOut) and OpenStream (from Streams) without
a hitch... never tried OpenInputFile...

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
No problem is so formidable that you can't just walk away from it.
                     
    Steve Tynor
    Georgia Instutute of Technology

 ...{akgua, allegra, amd, harpo, hplabs,
     ihnp4, masscomp, ut-ngp, rlgvax, sb1,
     uf-cgrl, unmvax, ut-sally}  !gatech!gitpyr!tynor
Re: File I/O in TDI Modula-2
#2390
Author: Mark Roddy
Date: Mon, 03 Feb 1986 14:25
18 lines
1120 bytes
> 
> How does one open a disk file for reading with TDI Modula-2?
> 
> I have tried to get OpenInputFile in the InOut module with
> unsuccessful results.
> 

I've used streams with no problem:

	OpenStream(handle,"foobar.doc",READ,reply);

	However, the same thing done with the printer acts weirdly:
		
		OpenStream(handle,"PRN:",READWRITE,reply);
		(* reply is -3 - "unknown command" *)
	
Having posted a glowing review of TDI Modula-2, I am now starting to find
a few bugs. When I have a complete list, I will post a follow-up.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads