home > 比較編 > Perl, PHP, Python, Ruby > files >

ForNext

Only Do What Only You Can Do

174. open file

VBScript

JScript

Perl

open my $f, "/etc/hosts"; or
open FILE, "/etc/hosts";

PHP

$f = fopen("/etc/hosts", "r");

Python

f = open('/etc/hosts')

Ruby

f = File.open("/etc/hosts") or
File.open("/etc/hosts") { |f|

PowerShell

Scala

F#

C

C++

C++Builder

VC++

C#

Java

Objective-C

D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

関数型

inserted by FC2 system