LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-08-2005, 07:15 AM   #1
mrobertson
Member
 
Registered: May 2005
Posts: 275

Rep: Reputation: 30
reading and printing out a text file in html


I currently have four text files that are populated every second using a vb6 app. I need to write an html script that will read and print these values out each second. More specifically I have four text file each containing one number. The four of them printed together would look like this:

123456
12.88
34.99
124.65

When a new file is populated the very next second, I want the numbers above to be replace with the numbers in the new file. Can anybody let me know what I would need to do to make this work?
 
Old 07-08-2005, 11:47 PM   #2
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
If this text file exists on the server, you would need to use server-side scripting. If it is a simple application with text file on the client side, you can use JavaScript.

There is no such thing as "HTML Script". HTML is markup. The scripting language has to be embedded within the HTML file. Whether it is JavaScript or whether it is server-side script.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
reading text from a file mrobertson Programming 16 06-28-2005 12:39 PM
Extract text from a html file gsphanikumar6 Linux - Newbie 2 08-20-2004 01:11 PM
C++ reading from text file query lrt2003 Programming 5 05-15-2004 04:25 AM
reading a text file and outputting to another. Hardw1re Programming 28 11-03-2003 08:51 AM
Perl Script Reading a txt file and generate html to be published! kofi Linux - Software 1 09-22-2003 05:12 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:23 PM.

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