# Re: 请问如何把文字档的资料存入资料库中呢???

Posted by weisili on August 25, 1999 at 19:03:32:

In Reply to: Re: 请问如何把文字档的资料存入资料库中呢??? posted by sharon on August 24, 1999 at 21:29:48:

sorry have to type in english. It depends on how the data was stored in text file. Normally, some reserved spaces were assigned to each field, u can then asked ur prog to read the text within a certain range. Let's say in the first line (the first record), the length (0 - 10) is the index, length 11 - 50 is name field, and so on. So, write a do loop to ask ur program to read from the first line (input #Filenum, fields(0), fields(1), fields(2),....) until the end of the text file. This is only one of the ways. Perhaps, there's better solution. Good luck.

Follow Ups: