ForNext
Only Do What Only You Can Do
174. open file
Hyperpolyglot Interpreted Languages: PHP, Perl, Python, Ruby より (2012.05.08)
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|