Computer Science Canada Changing a Text File Program to a Binary File Program (searching) |
Author: | Tubby_Kat [ Sun May 17, 2009 9:44 am ] | ||
Post subject: | Changing a Text File Program to a Binary File Program (searching) | ||
What is it you are trying to achieve? I'm trying to get the program to search for contacts that was formally a text file program to a binary file program. What is the problem you are having? It won't search for names or anything when it's a binary file Describe what you have tried to solve this problem Get it to search Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) Not the real program, but an example.
Please specify what version of Turing you are using 4.1 Thanks for reading |
Author: | Tubby_Kat [ Mon May 18, 2009 6:58 pm ] |
Post subject: | Re: Changing a Text File Program to a Binary File Program (searching) |
-waiting patiently- -____________________________- |
Author: | Dusk Eagle [ Mon May 18, 2009 7:32 pm ] | ||||
Post subject: | Re: Changing a Text File Program to a Binary File Program (searching) | ||||
You can't do that. You must use:
This makes the computer read one entire record into student. Then, you can call student.name or student.id or whatever. |
Author: | Tubby_Kat [ Tue May 19, 2009 8:02 pm ] |
Post subject: | Re: Changing a Text File Program to a Binary File Program (searching) |
I tried that and it still doesn't work... -________________- |
Author: | Tubby_Kat [ Thu May 21, 2009 6:19 pm ] |
Post subject: | Re: Changing a Text File Program to a Binary File Program (searching) |
can someone please help? |
Author: | Dusk Eagle [ Thu May 21, 2009 7:46 pm ] |
Post subject: | Re: Changing a Text File Program to a Binary File Program (searching) |
You get the student data, but you never write it to the file. I admit I searched for about 10 minutes before I saw that ![]() |