Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you open a file for writing?

Answer Posted / ankur

open FP,">","myfile.txt";
print FP "Hello World!!";
close FP;

# > for write
# < for read
# >> for read and write

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to open a directory in perl?

1159


What does next statement do in perl?

1052


What do you mean by context of a subroutine?

1026


What happens when you return a reference to a private variable?

1057


How will you open a file in read-only mode in perl?

957


What does `$result = f() .. g()' really return?

1297


You want to add two arrays together. How would you do that?

938


What is use of ‘->’ symbol?

1058


What is a perl references?

970


How to deleting an existing file in perl programming?

949


Explain the different types of data perl can handle.

945


Explain 'grep' function.

1024


What is perl scripting?

993


What does last statement do in perl?

1067


what are the steps involved in reading a cgi script on the server?

986