ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  How Can I read CSV files? finance.pl (Perl Edition)
Posted by Andrea on Jan-25-2010 23:46
Hello Guys!!!!!

I hope you can help me, I am beginner. I don't have the slightest idea how to make.

In my limited experience, how I can learn how to modify the code in file finance.pl? How can I read CSV files? some ideas? example a code for perl?

CSV files Comma Separated
DATE, CLOSE, OPEN, HIGH,  LOW, VOLUME

Congratulations and thanks for this amazing script!

In my Webhosting for PHP do not support external modules but with Perl (CGI) was a easy procedure.

  Re: How Can I read CSV files? finance.pl (Perl Edition)
Posted by Peter Kwan on Jan-26-2010 02:34
Hi Andrea,

To learn how to modify the code in finance.pl, the first thing you need to do is to understand the code. After understand, you can modify it to fit you needs.

If you are not familiar with how to write Perl, or how to use Perl to read CSV files, you may try to search using Google. There should be plenty of Perl tutorials on the Internet, including examples on how to read CSV files. Then you can use the data read from the CSV file to replace the hard coded data in the sample code.

There is even an example in the ChartDirector forum in using CSV, but it is not for "finance.pl". If you like, you can use it as a reference to create your own CSV code, and use that code in "finance.pl".

http://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1260516362#N1260870526

Hope this can help.

Regards
Peter Kwan