Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Input Redirection
Input Redirection [message #667650] Sat, 30 April 2011 12:06 Go to next message
No real name is currently offline No real name
Messages: 1
Registered: April 2011
Junior Member

From command line I can type
C:\Class < input.txt
but I cannot figure out how to do it on Eclipse

Help
Re: Input Redirection [message #667653 is a reply to message #667650] Sat, 30 April 2011 12:26 Go to previous message
Stanimir Stamenkov is currently offline Stanimir Stamenkov
Messages: 254
Registered: July 2009
Senior Member
Sat, 30 Apr 2011 12:06:08 -0400, /leodavinci111@gmail.com/:

> From command line I can type
> C:\Class < input.txt but I cannot figure out how to do it on Eclipse

Not sure what it would mean "do it on Eclipse", but in Java one uses
System.setIn(InputStream):

http://download.oracle.com/javase/6/docs/api/java/lang/Syste m.html#setIn%28java.io.InputStream%29

--
Stanimir
Previous Topic:[SOLVED] How to use HTML text inside MessageDialogs?
Next Topic:Listener to Auto-Refresh
Goto Forum:
  


Current Time: Thu Apr 24 14:48:15 EDT 2014

Powered by FUDForum. Page generated in 0.01639 seconds