Tim Kaulmann wrote:
A friend told me that his GPC Compiler did not accept "file of char" at his variable declaration part. He tried "text" instead and it worked.
Is this solved in a newer version of GPC or is this an unknown bug ?
AFAIK, GPC has always supported `file of Char' (at least, for several years, and I don't have an older version to test -- if he's still using GPC 2.0 or such an old version, he might be better off upgrading, also for other reasons). It is true, however, that GPC doesn't treat `file of Char' and `Text' as equivalent (e.g., Readln/Writeln applies to `Text' files only). That's according to the standard, AFAIK, and the same with most other Pascal compilers. But ISTR there are a few compilers (Sun Pascal?) that treat them as equivalent, so if he tried code written for these compilers, it might be that he used `file of Char' where actually `Text' was correct. If that's not the cause, please get some sample code from him, and state the compiler version used. Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/ GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html