Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Java File Handling/Reading

Name: Anonymous 2007-03-21 12:29 ID:ylubnhm0

Guys,

java bullshit examplefile.txt

Basicly I need to receive a file as an input, and then, I have to read the first line.

How do I do that if I don't know the file's name. (Any file could be thrown in, and I have to read it).

Thanks, /prog/

Name: Anonymous 2007-03-21 12:56 ID:YE3xUJT1

Read the command-line arguments. It's the String[] args in the main function's prototype.

Name: Anonymous 2007-03-21 18:42 ID:Heaven

do your own fucking homework?

Name: Anonymous 2007-03-21 18:55 ID:TSYS4jl3

Name: cage 2007-03-21 19:12 ID:TSYS4jl3

>>3
stfu. the girl didn't even posted her full work. it's okay to help others.

Name: Anonymous 2007-03-21 19:26 ID:3PeEomWG

>>5

No, it's not. Fucking communist.

Name: Anonymous 2007-03-21 19:55 ID:Heaven

>>3
Signed. Posting threads like these ought to get you b&.

Name: Anonymous 2007-03-21 21:27 ID:3zOEjaF2

>>5
GET OUT YOU FUCKING HIPPIE

Name: Anonymous 2009-01-14 13:22

I AM AN EXPERT PROGRAMMER

Name: Anonymous 2009-03-06 13:38


String is essentially an array of characters   Think about it   i should be   def factorial x.

Name: ​​​​​​​​​​ 2010-10-24 11:26

Name: Anonymous 2011-02-03 5:02

Name: Sgt.Kabu竝蠁kiman崄ᩇ 2012-05-28 23:29

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List