Computer Science Canada Viewing txt file |
Author: | bc123 [ Tue Nov 03, 2009 7:54 pm ] | ||
Post subject: | Viewing txt file | ||
Hey 2day at skewl i made this thing to view database but i forget code need to know correction asap
i jus forgot a line or two |
Author: | Superskull85 [ Tue Nov 03, 2009 11:25 pm ] | ||
Post subject: | RE:Viewing txt file | ||
You will need to include a get statement inside your loop:
You also should not be opening the same file over and over unless you close it first (ei. you should not put an open statement in your loop). |
Author: | bc123 [ Wed Nov 04, 2009 1:31 pm ] |
Post subject: | RE:Viewing txt file |
i dont undterstand |
Author: | Kharybdis [ Wed Nov 04, 2009 3:12 pm ] | ||
Post subject: | RE:Viewing txt file | ||
If i remember it correctly...
|
Author: | bc123 [ Wed Nov 04, 2009 8:14 pm ] |
Post subject: | RE:Viewing txt file |
doesnt work for me it says attempted on unopen stream number -10. open on line 3 failed with message 'file any idea??? |
Author: | Superskull85 [ Wed Nov 04, 2009 10:02 pm ] | ||||
Post subject: | RE:Viewing txt file | ||||
That means that went wrong when you tried to open that file (could be caused if the file did not exist in the same folder as your .t file). Also to output the contents to the screen you do not need to include the file ID. So instead of this code:
Should be:
|