Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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.