Help for this page

Select Code to Download


  1. or download this
    open my $fh, ">FILENAME" or die "Can't write FILENAME: $!";
    print $fh "We are writing a line of text to a file.\nSecond line";
    close $fh;
    
  2. or download this
    <%
    Dim objFSO, objTextStream, file
    ...
    Set objTextStream = Nothing
    Set objFSO = Nothing
    %>
    
  3. or download this
    try {
            BufferedWriter out = new BufferedWriter(new FileWriter("outfil
    +ename"));
    ...
            out.close();
        } catch (IOException e) {
        }