Ok so I am using the new format to open a file via Fassign but when I compile it shows . expetced. Here is what I have.
Var cfile : file;
fAssign(cFile , 'hours.txt' 02);
its telling a period is expected after 'hours.txt' i followed it as its shown in the whats new. Any ideas? Im updating my system available mpl
My guess is its saying "," (comma not a period). Try this:
fAssign (cFile, 'hours.txt', 2)
Ok so I am using the new format to open a file via Fassign but when I compile it shows . expetced. Here is what I have.
Var cfile : file;
fAssign(cFile , 'hours.txt' 02);
its telling a period is expected after 'hours.txt' i followed it as its shown in the whats new. Any ideas? Im updating my system available mpl
on 01/05/15, g00r00 said...
My guess is its saying "," (comma not a period). Try this:
fAssign (cFile, 'hours.txt', 2)
it did not like it so I added
fassign(cfile, cfgmpepath+ 'hours'txt', 02);
so now it moved on and now i am getting type mismatch
I put
reset(cfile);
freadline(cfile, hstart); so i think its saying hstart is the mismatch? now the hours.txt first line says 1200 and next line is 13:30 that is sysop available. Is there a new command to get sysop hours internal to mpl?
I think it's saying it wants a comma, not a period. I can see that a comma is missing from your statement, so that is what i would try first.
is hstart defined as a string? If not, that would account for the mismatch error. Also, is it not fReadLn, instead of fReadLine? Not
sure if you're just typing here from scratch or if this is your actual
Sysop: | Eric Oulashin |
---|---|
Location: | Beaverton, Oregon, USA |
Users: | 91 |
Nodes: | 16 (0 / 16) |
Uptime: | 17:05:18 |
Calls: | 5,074 |
Calls today: | 6 |
Files: | 8,491 |
Messages: | 352,924 |
Posted today: | 1 |