St Xavier's School Development Office
Contact Person: Ms Renee Carvalho (22626967, 22621113 )
e-mail : xaviersfort@mtnl.net.in
% 'First we open the banner file, make sure you have the right path to the file Set MyFileObj = Server.CreateObject("Scripting.FileSystemObject") Set MyTextFile = MyFileObj.OpenTextFile(server.mappath("../quote/quote.txt")) 'Then we read the header IF NOT MyTextFile.AtEndOfStream THEN header = CInt(MyTextFile.ReadLine) END IF 'Then we make a random value based on the header, the RANDOMIZE 'statement is important to insure a random value. RANDOMIZE RandomValue = INT(header*RND)+1 Count=0 'Loops until it comes to line number=random value 'And then it saves it in the variable quote WHILE NOT MyTextFile.AtEndOfStream AND NOT Count = RandomValue quote = MyTextFile.ReadLine Count = Count + 1 WEND 'Closeing up the text file MyTextFile.Close %>
|
|
|||||||||||||||||
Friday, 27 November 2009St Xavier's School Development Office
Ex-students are requested to get in touch with this office in order to help the school.
Contact Person: Ms Renee Carvalho (22626967, 22621113 ) e-mail : xaviersfort@mtnl.net.in | ||||||||||||||||||
0 Comments:
Post a Comment
<< Home