here i am trying to append the data to a file with the same syntax before it was working fine after sligh modifications of the code it is not writing or appending the data to a file i dont understand why its happening here is my code
here it is fetching the data and in the while loop i used "print $fetchdata" to check whether it is retreiving teh data or not here it is fetching the data but i dont know why its not appending into a file. Any suggestions would be great.open (writefile,">>",$target_full_path) || die "Can't open $target_full_path"; while($fetchdata=$sth4->fetchrow_array()) { print $fetchdata; #it is working print writefile $fetchdata; # not appending $rowcount++; #here it is counting } close writefile; print $rowcount;
Thanks
In reply to appending data to a file by sudeep
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |