Hi People i have never done file or Directory manipulations before.
now in my form i have given date field and search button.
if the user enters date and clicks the search button,accoding to the
date entered it has to search for the folder in the ChatHistory folder
for example user enters date like 2009-01-23 means it has to search for
the folder which named 2009-01-23.
if the foder exists again it has to be iterated when i do this i get
folder structure would be ChatHistory has one folder like 2009-01-23
has two folder namely test and user these two folders contain 2 files
My code starts here
if params[:first_name].blank? and params[:second_name].blank? and
!params[:e_date].blank? and params[:e_date].blank?
puts “frtst date is not blank others are blank”
Dir.foreach(“ChatHistory”) do |f|
if f == params[:e_date]
Dir.foreach(f) do |p|
Pls Kindly help me up