search for: read_in

Displaying 2 results from an estimated 2 matches for "read_in".

Did you mean: read_ini
2003 Jan 07
1
klibc-0.72 released
This adds [f]getc() and fgets() for parsing config files. Probably hard to avoid. Still trying to decide if I actually want to add system() or not. -hpa
2006 May 24
0
Mongrel errors on file upload
...C:/InstantRails-1.3/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.11-mswin32/bin/mongrel_rails:228 C:/InstantRails-1.3/ruby/bin/mongrel_rails:18 Here''s my code. ------------ create_controller.rb -------------- class CreateController < ApplicationController def index end def read_in if params[:file_to_upload].instance_of?(Tempfile) FileUtils.copy(params[:file_to_upload].local_path, "#{RAILS_ROOT}/public/sandbox1.xml") @location_display = "Copied the Tempfile to sandbox1.xml" else File.open("#{RAILS_ROOT}/public/sandbox2.xml&qu...