in reply to appending is not done
Hi, Here your code is working fine. For this problem, my suggestion as follows:
1. Append mode (>>) work is to check whether the mentioned file is present or not. if not present then it will create a new file in the given filename, otherwise it will append the string. So, you will check whether file is present or not in that particular path.
2. Give 'die' function (to know the open statement status) as follows:
open(FD, ">>/users/smisra/test4.pl")||die("Cannot open the file\n");
I think it helps you.
Regards,
Velusamy R.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: appending is not done
by reasonablekeith (Deacon) on Aug 25, 2005 at 10:04 UTC |