what happen??

program hw;

uses wincrt;

var
xfile : text;

begin
assign(xfile, 'model.txt');
reset (xfile);
close (xfile)
end.

this is my program....but can't running and post
"runtime error 2 at 0001:0039",why?? and what cam i do??

Comments

  • : program hw;
    :
    : uses wincrt;
    :
    : var
    : xfile : text;
    :
    : begin
    : assign(xfile, 'model.txt');
    : reset (xfile);
    : close (xfile)
    : end.
    :
    : this is my program....but can't running and post
    : "runtime error 2 at 0001:0039",why?? and what cam i do??
    :
    Runtime error 2 is a file not found error according to the Pascal help. This means that model.txt is not present in the same directory as your program.
  • [b][red]This message was edited by yuen at 2004-12-9 9:33:27[/red][/b][hr]
    Thanks. Then, I want to know how can I use array to search the ansawer??
    If my answer is "whack" but the user write "what" , how can the program show the answer is correct "wh"? Can you show me how to write??


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories