This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Text File Measuring

 
Derek Duggan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 805
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Look ma! I'm selling my stuff!
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!