Iain
03-06-2005, 06:24 PM
I have a file on my server that has a number of lines in it, depending on the number of users in the chat-room.
What I'd like to do is to count the number of lines in this file, so that I can display it next to the Link for opening the chat-room (i.e. 0 people chatting, 27 people chatting; and {if I can be bothered being clever} 1 person chatting).
However, I cannot find a javascript way of counting lines in a file. Any ideas?
Iain
What I'd like to do is to count the number of lines in this file, so that I can display it next to the Link for opening the chat-room (i.e. 0 people chatting, 27 people chatting; and {if I can be bothered being clever} 1 person chatting).
However, I cannot find a javascript way of counting lines in a file. Any ideas?
Iain