Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-25-2005, 09:32 AM   #1
Registered: May 2005
Posts: 275

Rep: Reputation: 30
Saving a text file as a variable and reading it every second in java script

I have a text file that is dynamically generated every second. I need to be able to read this text file every second and save the text file as a variable. I need to be able to do this in Java script. Can anybody help me as to how this would be done?
Old 07-25-2005, 02:56 PM   #2
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,706

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
In java or in javascript ?
Old 07-26-2005, 07:04 AM   #3
Registered: May 2005
Posts: 275

Original Poster
Rep: Reputation: 30
Old 03-26-2007, 07:07 PM   #4
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Is there any particular formula for which the file names are decided?

IE. At 80 seconds, does the file name have an 80 in it?
Old 03-26-2007, 08:25 PM   #5
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Rep: Reputation: 35
I think this will help:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving the output of a file as a variable mrobertson Programming 5 07-08-2005 12:43 AM
how to cat a text file and save it as a variable mrobertson Programming 37 07-05-2005 08:20 AM
reading text from a file mrobertson Programming 16 06-28-2005 12:39 PM
Need help reading text file in bash script scilec Programming 3 11-25-2004 06:44 PM
Bash script - reading from text file twantrd Programming 4 11-24-2004 12:38 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration