Raised This Month: $ Target: $400
 0% 

Getting file all lines number...


Post New Thread Reply   
 
Thread Tools Display Modes
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
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 03-27-2006 , 10:55  
Reply With Quote #2

http://amxmodx.org/funcwiki.php?sear...size&go=search
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
SlimDog
Junior Member
Join Date: Mar 2006
Location: Lithuania
Old 03-27-2006 , 11:03  
Reply With Quote #3

Quote:
Originally Posted by Suicid3
http://amxmodx.org/funcwiki.php?search=file_size&go=search
Thanks!
__________________
SlimDog is offline
Reply



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