Accessing CurrentSubjectInfo file
I'm running a Java program through MediaLab, and while I've been able to figure this part out and get it to run, it's not saving my data the way I would like and I know it's because I haven't been able to figure out how to give this program access to the CurrentSubjectInfo file. Unfortunately, while I know the Visual Basic code to do this:
Open "c:\medialab\currentsubjectinfo.txt" For Input As #1
Input #1, subject: subject = Mid(subject, 11, Len(subject) - 10)
Input #1, condition: condition = Mid(condition, 11, Len(condition) - 10)
Close #1
I don't quite know what to do WITH it. Where do I run this, exactly?
Thank you so much,
Shannon
Changing CurrentSubjectInfo file
I think I was unclear earlier. I need to give Java program I'm running through Medialab access to my CurrentSubjectInfo file. It presently doesn't have it, and is defaulting to No ID. I'd prefer if it knew the actual subject number, and that is when I apparently need to use the Visual Basic code given above, according to the user manual. However, I am still unsure where this code is supposed to go- adding it to the Java code does not seem to fix anything.
Thank you so much.