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

Text File Measuring

Derek Duggan
Greenhorn

Joined: Jan 14, 2005
Posts: 5
Hey

Hoping for a little bit of help, i've a gui designed which takes in information from the user and saves it to a .txt file. Is it possible to measure the actual length of that file and return a value to the user in bytes, and if it is how could i get it to work

Thanks for any Help

Derek
Jeff Bosch
Ranch Hand

Joined: Jul 30, 2003
Posts: 804
In the File class API you'll find a length method that returns the length as a long. If you learn to work with the API docs, you'll find answers to your questions pretty quickly, much more quickly than waiting for someone to post a reply...


Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Text File Measuring
 
Similar Threads
Log changing
how set Tomcat user the owner or member of group ?
how to create file in jsp?
how to pop up a html page by pressing a button in a java application?
What kinds of items for menu bar?