I am beginner in pascal programming. I apply the gpc-compiler on a computer at home, running under linux (suse 6.0 distribution). Some self made programs run well, but my problem is application of reset, rewrite commands. Please give me a hint, how to solve it. The situation: With the var g:text;s:string[5] in the main program the sequence s:='alpha'; rewrite(g,s); writeln(g,'test'); .
This should work. However, with such a code snippet I can't do anything. If you want any help, post a *complete* program that does not behave as expected, and specify the compiler version (gpc -v).
Frank