title: Marshal data too short to load : Loading an array
body: <pre><code>DATA = [
  [false, "aef012.documents", "path", 9, 1], [false, "test.documents", "path", 7, 1], 
  [false, "test.documents", "path", 182, 2], [false, "test.sw", "path", 1, 3], 
  [false, "test.rm_git_h1_hw", "path", 1, 4], [false, "test.rm_git_h1_mech", "path", 1, 5], 
  [false, "test.rm_git_h1_others", "path", 1, 6], [false, "test.rm_git_h_doc", "path", 1, 7]
    ]
  
  test_data = Marshal.dump(DATA)
  #Returns some marshal data
  
  File.open('test.txt', 'w') {|f| f.write(test_data) }
  #360
  
  DATA = Marshal.load File.read('test.txt')
  # ArgumentError : marshal data too short. 
  </code></pre>
  
  <p>What is wrong with the DATA array? Why am I getting the argument error. </p>
  
  <p>Any help will be appreciated. </p>