Loading ...
Sorry, an error occurred while loading the content.
 

Need help with mysterious code!!

Expand Messages
  • Antonio A R N
    Hi, Supose that I have a file called t.txt which is not empty. After I run ###Program 1### it empties the file t.txt , but when I run ###Program 2### it
    Message 1 of 1 , Apr 21, 2000
      Hi,
      Supose that I have a file called "t.txt" which is not empty. After
      I run ###Program 1### it empties the file "t.txt", but when I run
      ###Program 2### it doesn´t. What is happening here????
      Could anyone help me with a program with functions like ###Program
      1### that doesn´t empties the file????

      Thanks...
      Antonio

      ###Program 1###
      &aa();
      &bb();

      sub aa { open (In,">t.txt"); }
      sub bb { close (In); }
      ###End of Program1###


      ###Program 2###
      open (In,">t.txt");
      close (In);
      ###End of Program2###
    Your message has been successfully submitted and would be delivered to recipients shortly.