FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
Name  

saveBytes()

   
Examples  
byte[] nums = { 0, 34, 5, 127, 52}; 
 
// now write the bytes to a file 
saveBytes("numbers.txt", nums); 

Description   Opposite of loadBytes(), will write an entire array of bytes to a file. This file is saved to the sketch's folder, which is opened by selecting "Show sketch folder" from the "Sketch" menu.
   
Syntax  
saveBytes(filename, bytes)
   
Parameters  
filename   name of file to write to

bytes   array of bytes to be written

   
Returns   None
   
Usage   Application
   
Related   loadStrings()
loadBytes()
saveStrings()
 
 






   
 
Updated: Fri Jul 15 16:36:06 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info