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

Files are opened using the open and sysopen function.
Either function may be passed up to 4 arguments, the first
is always the file handle thenfile name also known as a URL
or filepath, flags, and finally any permissions to be
granted to this file.

$FH = "filehandle";
$FilePath = "myhtml.html";

open(FH, $FilePath, permissions);
or
sysopen(FH, $FileName, permission);

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What value is returned by a lone `return;’ statement?

1037


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

1170


What are scalars in perl?

936


What are the various file operations in perl. Explain with example.

920


Explain the different types of data perl can handle.

886


You want to concatenate strings with perl. How would you do that?

861


What is automatic error handling in perl?

1028


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

883


How to deleting an existing file in perl programming?

888


What are the arguements we normally use for perl interpreter?

940


How do find the length of an array?

1104


Explain goto label?

904


Which functions in perl allows you to include a module file. State their differences.

931


what is Polymorphism in Perl?

947


Enlist the advantages of using c over perl?

902