Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Reading a file: checking to see if a file exists.
Index -> Programming, Turing -> Turing Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
beard0




PostPosted: Sun May 30, 2004 4:46 pm   Post subject: (No subject)

To satisfy your crazy teacher's exit when desires, and still satisfy your inner desire for code that doesn't make you look like a retard, try this:
code:
var sname:string
loop
    get sname   
    exit when File.Exists (sname) or File.Exists(sname+".t")
end loop
Music.Play ("a") 
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 16 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: