Sha256: cf19b8f90ec46edd03378f9682f8d916d9c5f34670af382c43c10f5c526de214

Contents?: true

Size: 458 Bytes

Versions: 11

Compression:

Stored size: 458 Bytes

Contents

# Chemin du dossier contenant les fichiers
folder_path = "./*"

# Chemin du fichier de sortie
output_file_path = "./!all.rb"

# Création et ouverture du fichier de sortie
File.open(output_file_path, "w") do |output_file|
  # Lecture de tous les fichiers du dossier
  Dir.glob(folder_path).each do |file_path|
    # Lecture et écriture du contenu de chaque fichier
    File.read(file_path).each_line do |line|
      output_file.write(line)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
atome-0.5.5.7.7 vendor/assets/application/examples/a_concat.rb
atome-0.5.5.7.5 vendor/assets/application/examples/a_concat.rb
atome-0.5.5.7.3 vendor/assets/application/examples/a_concat.rb
atome-0.5.5.7.1 vendor/assets/application/examples/a_concat.rb
atome-0.5.5.7.0 vendor/assets/application/examples/a_concat.rb
atome-0.5.5.6.9 vendor/assets/application/examples/a_concat.rb
atome-0.5.5.6.8 vendor/assets/application/examples/a_concat.rb
atome-0.5.5.6.7.9 vendor/assets/application/examples/a_concat.rb
atome-0.5.5.6.6 vendor/assets/application/examples/a_concat.rb
atome-0.5.5.6.5 vendor/assets/application/examples/a_concat.rb
atome-0.5.5.6.4 vendor/assets/application/examples/a_concat.rb