Raised This Month: $ Target: $400
 0% 

Getting file all lines number...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SlimDog
Junior Member
Join Date: Mar 2006
Location: Lithuania
Old 03-27-2006 , 09:19   Getting file all lines number...
Reply With Quote #1

Let's say that I have a file:
Code:
        new cfgdir[256]         get_configsdir(cfgdir , 255);         format(cfgdir , 255 , "%s/predictions.txt");

Is there a way to get a number of lines in it? Because i want to use it in here:

Code:
new line = random_num(6,"all lines in that file number")

EDIT: Or maybe it's impossible?
__________________
SlimDog is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode