From: yahdoco Date: 2007-09-07T04:00:10+09:00 Subject: Re: running ruby > Have you actually read the responses to your questions? > For 1: Start -> Run -> command.com > For 2: Right click on title bar of command window, Properties, Colors tab. > *Both* of these questions have been answered. Multiple times. > Phillip Gawlowski ---------------------------------- Hi Phillip...I have not ignored the messages sent here. Let me begin by saying that I am using Windows98. It may have some limitations you are not aware of. I have carried out the operations you are talikng about. Here are the results: start>run>enter "command.com" c:\WINDOW\Desktop> Right Click on Title Bar (DIALOG BOX comes up) MS-DOS Prompt Properties TABS->|Program,Font,Memory,Screen,Misc| There is no Colors Tab. When I click on Screen, it shows the screen I will get (white characters on a black foreground). There is no button to control color or reverse black and white. I have gone to the Control Panel-->Display in MyComputer. It allows me to control colors in many places, but not in this window. It looks like I change what I would like to change. Thanks for trying to help me. ---------------------------------- ---------------------------------- My next plan is to try to transfer the data from the black-white screen to a Notepad file called outzzz.txt. Perhaps someone can correct my code below to make this happen. Here is the code: ................................. #generate some simple output (comment) puts "Hello World" f = File.new("outzzz.txt", "w") f.write("this is a test") require 'open-uri' require 'csv' def get_adjusted_close stock_symbol puts "-- #{stock_symbol} Adjusted Close - Historical --" url = "http://ichart.finance.yahoo.com/table.csv? s=#{stock_symbol}&d=7&e=1&f=2006&g=d&a=2&b=26&c=1990&ignore=.csv" puts "Connecting to #{url}\n" csv = CSV.parse(open(url).read) csv.each{|row| puts "#{row[0]} - #{row.last}" } puts "---------------------------------" end example_stocks = "CSCO GOOG" print "Enter a series of stock symbols separated by spaces (example: #{example_stocks}) to retrieve the historical adjusted close.\n" stock_symbols = gets stock_symbols ||= example_stocks stock_symbols.split.each{|symbol| get_adjusted_close(symbol) f.write(get_adjusted_close(symbol)) } Thanks for your help. Yahdoco