Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 16th July 2004, 09:54   #1  |  Link
NeOff
Registered User
 
Join Date: May 2004
Posts: 7
File Reading Plugin or Script

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.
NeOff is offline   Reply With Quote
Old 16th July 2004, 11:25   #2  |  Link
vion11
Registered User
 
Join Date: Oct 2002
Posts: 167
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....
vion11 is offline   Reply With Quote
Old 16th July 2004, 18:44   #3  |  Link
NeOff
Registered User
 
Join Date: May 2004
Posts: 7
Yes, thank you, this worked perfectly
NeOff is offline   Reply With Quote
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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:16.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.