Flowdock
method

compare_file

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: FileUtils
compare_file(a, b) public

Returns true if the contents of a file A and a file B are identical.

FileUtils.compare_file('somefile', 'somefile')  #=> true
FileUtils.compare_file('/bin/cp', '/bin/mv')    #=> maybe false
Show source
Register or log in to add new notes.