Skip to main content


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 16:06 Go to next message
No real name is currently offline No real nameFriend
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 16:26 Go to previous message
Stanimir Stamenkov is currently offline Stanimir StamenkovFriend
Messages: 256
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: Fri Apr 19 02:24:47 GMT 2024

Powered by FUDForum. Page generated in 0.01693 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top