java programming in eclipse

Live forum: http://forum.freeipodguide.com/viewtopic.php?t=35075

kyks17

11-03-2006 21:34:05

any java programmers using eclipse in here? if so, do u know how to pipe an input file into it for testing purposes? i cant seem to figure out how to and google is sucking at helping (

gregcool

11-03-2006 23:25:15

I have tried to figure it out for the longest time. I just use the prompt and do it the old fasion way ( Sorry I couldn't help, but at least you know you aren't the only one, lol

kyks17

11-03-2006 23:30:51

heh damn

Allen626

12-03-2006 01:45:09

I <3 eclipse for java programming. What do you mean by pipe? Just place the file(s) into the workspace folder in eclipse and it should show up.

Allen626

12-03-2006 01:49:20

Do you mean how do you read a file from a program in java? Because that is not a eclipse specific question. With eclipse though you can easily make a file in the root directly by creating a new file just like a new class.

To read a file from something you can use functions like File(Something) it should be in the java help documentation and really easy to find. I have not programmed in java in a year or so D.

Admin

12-03-2006 02:10:25

echo "someinput" > foo
java yourClass < foo

kyks17

12-03-2006 05:24:35

by pipe i mean what admin wrote. ive got my file (with about 7 million lines of code heh...literally) and i need to pipe it in so that it reads a line at a time and deals with it and such. so the input comes from standard in, not from reading a file. ud think theyd have a way to let u do this boo (

dmorris68

12-03-2006 09:31:46

The way Admin wrote should work. Are you reading from directly from System.in or wrapping System.in in an InputStreamReader or BufferedReader?

kyks17

12-03-2006 12:01:12

i know it will work...and i can do that fine from command prompt but im trying to do it inside eclipse because i love their debugging. and its a bufferedReader