I/O

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I store some premium rate in a text file and this rate later is used to calculate the premium. I decided to put the interest rate in text file instead of database because different age have different rate. For example

// each age consists of 5 rat
age 10, 2.65, 2.85, 3.02, 3.25. 3.5

age 20, 2.85, 3.24, 3.55, 3.98, 4.25

does anyone have any suggestion to solve this problem in better way ??
 
Hi Hong:

Using XML may be a bit more elegant, but it will be slower so I think this
is a fine approach. Take a look at the CSV Library in the OpenNetCf SDF
http://www.opennetcf.org/library/
This will pretty much give you the ease of use b/c you can use of the
System.Data objects but performance shouldn't suffer. That's not to say
that XML is in any way bad, but it's a lot easier to parse a CSV file than
traverse an XML Document.

HTH,

Bill
Hong said:
I store some premium rate in a text file and this rate later is used to
calculate the premium. I decided to put the interest rate in text file
instead of database because different age have different rate. For example,
 
I'v check the CSVlibrary I already download the library but how to install it ??? Do I need to do configuration ??
 
Back
Top