Problem with ABC Pascal

Discussion in 'Computer Programming, Emulation, and Game Modding' started by AlanJohn, Oct 30, 2012.

Oct 30, 2012

Problem with ABC Pascal by AlanJohn at 11:37 AM (365 Views / 0 Likes) 0 replies

  1. AlanJohn
    OP

    Member AlanJohn くたばれ

    Joined:
    Jan 6, 2011
    Messages:
    3,425
    Location:
    Canada,New Jersey
    Country:
    Ukraine
    So recently I have been programming in pascal because I can, and I have encountered a serious problem with my compiler ABC pascal. Basically, it won't write anything in the output.txt file. Here's the code, but the problem is not in it (as far as I know):
    Code:
    program strings;
     
    var
      U, V, S: string;
      f1, f2: text;
     
    begin
      assign(f1, 'input.txt');
      assign(f2, 'output.txt');
      reset(f1);
      rewrite(f2);
      readln(f1, u);
      readln(f1, v);
      S:= u + v;
      writeln(f2, S);
      close(f1);
      close(f2);
    end.
    And here is input.txt:
    Code:
    alan
    john
    So, what may be the problem?
     

Share This Page