aspose file tools*
The moose likes Beginning Java and the fly likes IO application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "IO application" Watch "IO application" New topic
Author

IO application

Casey Voss
Greenhorn

Joined: Oct 31, 2006
Posts: 1
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

Joined: Nov 24, 2005
Posts: 14688
    
  16

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


[My Blog]
All roads lead to JavaRanch
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

one minute late
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
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


You down with OOP? Yeah you know me!
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11499
    
  16

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.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IO application