APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Read and write from and to files post and replies

Return to the Read and write from and to files thread
Login to post to this thread

Read and write from and to files in EJS
Fernando Silva Fernandes
10 Posts

How can the Fortran:

open (unit=1, file='input.dat', ...)

open (unit=3, file='output.dat', ...)

read (1,*) x, ... write (3, *) x,...

be coded in EJS?

Thanks,

Fernando


Replies to Read and write from and to files in EJS

Re: Read and write from and to files in EJS -
Francisco Esquembre
228 Posts

See attached example.

Attached File: WritingAndReadingASCII.ejs1.zip



OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book