// FILE. . . . . /home/hak/ilt/dotnet/src/Ilog/Language/IO/test/IncludeReaderTest1.cs // EDIT BY . . . Hassan Ait-Kaci // ON MACHINE. . Latitude407.ilog.biz // STARTED ON. . Mon May 9 13:57:13 2005 // Last modified on Thu May 19 08:57:21 2005 by hak /** * This tests the IncludeReader.class. */ using System; using System.IO; using Ilog.Language.IO; public class IncludeReaderTest1 { public static void Main () { IncludeReader rd = new IncludeReader("data/TestFile_1"); StreamTokenizer input = new StreamTokenizer(rd); for (;;) { input.NextToken(); if (input.TType == '#') { input.NextToken(); rd.Include("data/"+input.SValue); } else Console.WriteLine(input); if (input.TType == StreamTokenizer.TT_EOF) break; } } }