# File rddc_text_file.rb, line 184
  def write
    content = Array.new
    content_counter = 0
    begin
      file = File.new(@txt_file, "r")
      
    rescue
      raise if !$!.to_s.include? File.expand_path(@txt_file)
      #file not found, download from rdd.sf.net
      file = @txt_file[@txt_file.length-@txt_file.reverse.index("/")..@txt_file.length]
      response = Net::HTTP.get URI.parse(Rddc_url + file)
      file = File.new(@txt_file, "w")
      file.puts response
      file.close
      
      file = File.new(@txt_file, "r")
    end
    foo = false
    file.each do |line|
      if line[1] != nil then
        if line.include? "<" + @identifier + ">" then
          foo = true
          content[content_counter] = line
        end
        
        foo = false if line.include? "</" + @identifier + ">"
        
        if foo == false then
          content[content_counter] = line          end
        if line[0..0] != "#" and line[0..0] != "<" and foo==true and line != nil
          if line.index("=") != nil then
            key = line[0..line.index("=")-1]
            content[content_counter] = key + "=" + @hash[key]
          else
            key = line
            content[content_counter] = key
          end
        else
          content[content_counter] = line
        end
      else
        content[content_counter] = line
      end
      content_counter += 1
    end
    file.close
    
    file = File.new(@txt_file, "w")
    file.puts content
    file.close
  end