Algorithms

Moderators: None (Apply to moderate this forum)
Number of threads: 384
Number of posts: 762

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Scheme File Handling Posted by amoolboy on 24 Sept 2003 at 7:28 PM
Hi there,
I do not know anything about Scheme, but I have to modify someone's program to enable file handling. Is there a way a scheme program can keep checking for the presence of a file (that does not exist), and stop this loop when it finds the text file. During this time gap (until it finds the file), the scheme code should not do anything else. After finding the text file, it can then read the numbers in from this text file.

This is actually a scheme program that contains a GA, and I have my C program that periodically spits the distance moved by a robot onto a text file. This text file is the input for this scheme program and if the text file is created with this distance moved, then the scheme code can use it to run the GA and learn.

thanks
amul




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.