Log in

View Full Version : File Reading Plugin or Script


NeOff
16th July 2004, 09:54
Hello, I find myself in need of some way to read the first line of a .txt file, and use it as a string within my .avs script.

My first thought was to use the Call plugin, but it doesnt return any values. So I am wondering if there is any way to do this.

Ex:
abc = Read("temp.txt")

Thank you, for any help anyone can give me.

vion11
16th July 2004, 11:25
Not sure if it fits your needs, for titling effects
I've converted text files into variables and imported them.
Example:

This is the first line of my text file.
line2
line3
....

became

T01="This is the first line of my text file."
T02="line2"
T03="line3"
....

saved as 'manylines.avs' and then used import("") function
to work with variables T01, T02....

NeOff
16th July 2004, 18:44
Yes, thank you, this worked perfectly :)