File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IO application

 
Casey Voss
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am totally new to Java and I am wondering if someone could help me by giving me a example of a java file that displays your name and maybe 2 other bits of information. Then have the application show the file name, parent, size and time of last modification.

My teacher would like everyone to give an example of this and I am totally lost. Sure would appreciate it if someone could explain this to me..as I am not getting help through my class.

Thanks!
Casey
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Welcome to the ranch.
I think you should read the Naming Policy first, and change your name accordingly

Thank you.

If you want to start in Java, maybe you could try to read an HelloWorld intro here : http://java.sun.com/docs/books/tutorial/getStarted/index.html
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
one minute late
 
Justin Fox
Ranch Hand
Posts: 802
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
go to sun.com

go under developers...

then api/docs...

click on jdk1.5.0

and then in the 'all classes' scroll box

find "File"

and then look at the different methods for that class...

you should find what you need there


Justin
 
fred rosenberger
lowercase baba
Bartender
Pie
Posts: 12024
25
Chrome Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what do you know how to do? we really don't hand out homework answers here, but we'll bend over backwards helping you do it.

can you write the basic "Hello, World!" application? do you know how to compile and execute a program? do you have a Java environment on your machine?

What have you tried? where are you stuck?

answer these qeustions, and we'll help you move forwards. But nobody is going to just hand you the code. And if they do, I or one of the other moderators is probably going to remove it as soon as we find it. We want you to LEARN java, so you can be a good programmer. we don't want you to pass the assignment, and the class, by getting the code from someone else.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic