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

List the files in current directory sorted by size ?

964


Remove the duplicate data from @array=(“perl”,”php”,”perl”,”asp”)

981


Why does Perl not have overloaded functions?

1020


How can memory be managed in Perl?

1035


What are the steps involved in configuring a server using cgi programming?

880


What are prefix dereferencer? List them.

953


Explain the use of 'my' keyword in perl?

998


How do I replace every TAB character in a file with a comma?

951


what is Polymorphism in Perl?

947


Explain the execution of a program in perl.

968


Differentiate use and require?

925


How many ways can we express string in Perl?

946


How to read multi lines from a file in perl?

905


How to read file into hash array ?

1076


In Perl, what is grep function used for?

1059