code/superant.com.schedule/saveconfigurationrecord.rb in rwdschedule-1.00 vs code/superant.com.schedule/saveconfigurationrecord.rb in rwdschedule-1.01
- old
+ new
@@ -1,13 +1,11 @@
# this method adds a new address record
def saverwdscheduleconfiguration
require 'fileutils'
newname = "rwdschedule.cnf" # grab the filename to create
- newdata =@a_schconfigline1.to_s + "\n" + @a_schconfigline2.to_s + "\n" + @a_schconfigline3.to_s + "\n" + @a_schconfigline4.to_s + "\n" + @a_schconfigline5.to_s + "\n" +
- @a_schconfigline6.to_s + "\n" + @a_schconfigline7.to_s + "\n" + @a_schconfigline8.to_s + "\n" + @a_schconfigline9.to_s + "\n"+
- @a_schconfigline10.to_s + "\n" + @a_schconfigline11.to_s + "\n"+ @a_schconfigline12.to_s +
- "\n" + @a_schconfigline13.to_s + "\n"+ @a_schconfigline14.to_s + "\n"+ @a_schconfigline15.to_s + "\n"
+ newdata =@a_schconfigurationfile
+
begin # exception trapped block
fileName = File.join( ConfigurationDir, newname )
fd = File.open(fileName,"w")
fd.print(newdata) # save the record info to the file