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

Differentiate between use and require, my and local, for and foreach and exec and system

909


What rules must be followed by modules in perl.

992


What does localtime() do in perl?

1007


How do I pass a command line argument in perl?

978


Explain which feature of PERL provides code reusability?

1217


Write a program that shows the distinction between child and parent process?

939


What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?

1024


How to remove a directory in perl?

992


What is the purpose of _package_ literal?

1040


How and what are closures implemented in perl?

893


How many data types are there in perl?

965


Explain the execution of a program in perl.

997


Why is it hard to call this function: sub y { "because" } ?

962


Explain perl one-liner?

960


How to copy a file in perl?

993