How to read the contents of the file in templates

One of the requirement in our project is to read the contents of the text file for source of data and display the contents by incorporating standard site css styles in velocity templates.

I would like to know if there are any libraries or PSOToolkit available in Rhythmyx 6.5 environment to achive this. Something like preformatted server input txt file read operation within velocity template.

It sounds like you’re asking if you can include content in your template that doesn’t come from the Rhythmyx database. You can do that with Velocity.

Here is a simple Velocity example:

#include( "heading.txt" )##

You can also use traditional SSI if you escape the #:

 <!--#include virtual="/included.html" -->

But maybe you want to assign the contents of the file to variables?