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.

Loading *.txt files

Return to the EJS Modeling forum
Login to post to this thread

_readText(String filename)
Alberto Porras
5 Posts


I'm using the predefined methods for loading a *.txt file to a program I'm developing with EjsS. The command I use is:


With this, I thought I would be able to load the file List1.txt (which only contains a string of characters) into the aforementioned program, but it doesn't seem to work...
Is there something I misunderstood about this command?

On another note, is it possible to select by hand the file you want to load without specifying its filename in the command?

Thank you in advance,

Current Replies - View all
Re: _readText(String file...   (Francisco Esquembre - )
OSP Projects:
Open Source Physics - EJS Modeling
Physlet Physics
Physlet Quantum Physics
STP Book