From: George S. <gsc...@an...> - 2002-02-12 18:47:38
|
The following is a suggestion for the Pilot DB documentation. It would seem to be the case that it is critical that the last line of the metadata file and the last line of the data file each end with a line break. If either condition is not met, you get the error message "data.csv:n: number of fields doesn't match", where data.csv is the name of the data file, and n is either 1 if the problem is with the metadata file, or the number of lines in the data file, if the problem is with the last file. =20 Apparently without a final line break in the metadata file, the program doesn't recognize the last line, and is therefore looking for one field fewer than it should be. Similarly, without a final line break in the data file, it is not able to correctly count the number of fields on that line. Unfortunately, figuring out the problem from the error message is not at all obvious, and can make it very difficult to get the program up and running with your data. I would suggest at least incorporating this information into program documentation. =20 George Schneiderman |