home *** CD-ROM | disk | FTP | other *** search
/ Windows Shareware GOLD / NuclearComputingVol3No1.cdr / _bbs4 / f3104.zip / WINCRD.DOC < prev   
Text File  |  1990-09-20  |  3KB  |  49 lines

  1. Windows Cardfile Text Conversion Program
  2.  
  3.       The program WINCRD is a little program which converts TEXT ONLY 
  4. files in Microsoft Windows Cardfile to and from ASCII files.
  5.  
  6.       The Cardfile program which comes with Windows is a handy utility
  7. for keeping track of small lists, but has no easy way to import or 
  8. export data. In my case, I wished to be able to extract data from a data 
  9. base and put selected fields into a cardfile file, so I could check on 
  10. things in windows without having to run and load the data base program. 
  11.  
  12.       The ASCII file generated (or read) has one line per card, with the 
  13. data on the card being divided into fields. The index line is the first 
  14. field, and each line of text on the card terminated with a CR/LF is 
  15. another. The fields are separated by a TAB (ASCII 9) delimiter. A string 
  16. of text on a card may occupy more than one line, but still be considered 
  17. one field, if each line is not terminated with a CR/LF. The manner in 
  18. which the card was typed will determine this. Although this ASCII file 
  19. format is not that common, I used it because cardfile does not put tabs 
  20. in the cards, it expands them to spaces.
  21.  
  22.       When converting an ASCII file into cardfile form, no sorting is
  23. done on the index lines, which means that when it is read in, it will 
  24. not be in the correct order if the ASCII file was not. Cardfile seems to 
  25. have no problem with this if the resulting file is merged into a 
  26. cardfile. (For a new file, simply merge into a new file with a blank card,
  27. and delete the blank card). No checking is done on the length of the 
  28. index line, the first field must be less than 39 characters, and the 
  29. remainder of the text must fit on a card.
  30.  
  31.       Users converting large files should be warned, there seems to
  32. be a limit of 630 cards in a Cardfile file. The Wincrd program will 
  33. convert an ASCII file with more, and Cardfile seems to be able to read 
  34. it, but can not save it back out. An error saying not enough disk space 
  35. is generated. (At the time I was getting this error I had 5Meg free, 630 
  36. cards puts the amount of memory needed for tracking the index lines 
  37. [first part of file], just under the 32768 byte mark. I'm guessing it 
  38. is just an indexing limitation of the write routine, but who knows.)
  39.  
  40.       Anyone wishing to modify, expand, or whatever with 
  41. the source is more than welcome to. I apologize in advance for the 
  42. hashed structure of the program. I'd never programed in Pascal, so 
  43. having heard good things about Turbo Pascal, picked one up, sat down 
  44. with the manual, and this came out a day later. 
  45.  
  46. Richard Haw [76257,3346]
  47.  
  48.  
  49.