Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Mumps > Get the size of...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 906 of 959
Post > Topic >>

Get the size of a file

by =?iso-8859-1?q?S=E9bastien_de_Mapias?= <sglrigaud@[EMAIL PROTECTED] > Nov 8, 2007 at 03:31 AM

Hi,
There's no way to get the size of a file ?!? (I mean it doesn't come
natively with GT.M when you do:
~ s file="/usr/sebariga/textFile.txt"
~ s fileSize=someProc^fileUtilities(file)
??)

Will I have to write some routine that will (in order to get want I
wrote above):
- set up a counter at 0
- then loop thru a file and increment this counter by 1
- return this counter once I've exited the loop ?

Thanks.
Seb




 2 Posts in Topic:
Get the size of a file
=?iso-8859-1?q?S=E9bastie  2007-11-08 03:31:29 
Re: Get the size of a file
"K.S. Bhaskar"   2007-11-08 15:31:17 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 22:32:06 CDT 2008.