/ Published in: SmallTalk
                    
                                        
Reading the contents of a whole file as a string.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
FileStream readOnlyFileNamed: 'file.txt'
do: [:file | file contentsOfEntireFile]
Comments
 Subscribe to comments
                    Subscribe to comments
                
                