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 / raghav

To open a file:

open (FILE, "<raghav.txt") || die ("File Cannot be opened");

Where FILE is the file handle for this file.
Here the file is opened in read mode.
Put > for write mode
put >> for append mode.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to know whether a key exists or not in perl?

964


what are steps to do to lock the sony ericsson mobile with password?

2191


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

911


What is the use of command “use strict”?

1002


What is “grep” function in perl?

981


Explain what is perl language?

907


What is goto statement in perl?

923


Explain join function in perl?

934


Explain lists in perl?

957


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

931


Write an example explaining the use of symbol tables.

946


Explain which feature of PERL provides code reusability?

1190


Explain perl one-liner?

943


Define print() function in perl?

895


How to convert strings into an array in perl?

948