But I am having troubles creating a mergeFile.
My code looks like this:
text = ''
Dir[File.join(".", "**/*.java")].each do |file|
File.open(file).each do |line|
text << line + "\n"
end
text << "\n"
end
File.new("/Users/tools/Documents/workspace_2/Project_Carletti/merge.java")
File.open("merge.java", 'w'){
|f| f.write(text)
}
I can't find my error, can anyone tell me what is wrong

New Topic/Question
Reply



MultiQuote



|