インフォ FAQ
言語 環境比較
 
Index
 
  Processing 1.0 _ALPHAリファレンスは開発途中である。
もしエラーやコメントがあれば、reas at groupc.netへメールして下さい。
Name  

loadStrings()

   
Examples  
String lines[] = loadStrings("list.txt"); 
println("there are " + lines.length + " lines"); 
for (int = 0; i < lines.length; i++) { 
  println(lines[i]); 
} 

Description  

ファイルの内容かurlを読み込み、各々の行の文字の配列をつくる。もしもファイルが特定されれば、sketchの"data"ディレクトリーフォルダーに置かれていなければならない。

   
Syntax  
loadStrings(filename)
   
Parameters  
filename   文字列: ファイルの名前か、ロードするurl

   
Returns   String[]
   
Usage   Web & Application
   
Related   loadStream()
loadBytes()
writeStrings()
writeBytes()
   
© 2004- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas