- 论坛徽章:
- 0
|
原帖由 wellshunan 于 2006-7-19 17:19 发表
在我对文件数据库实现写操作后,怎么样使记录和记录之间的分隔符是“,”。
比如,我向文件info中写入两条记录:
wells 130012和mike 116023
怎样变成 wells 130012,mike 116023
谢谢!!
Hi,
make your question clear.
It's depend on which format of the raw recoes that you have,
record1 and record2 per line? => maybe use regex: s/\n/,/
record1/ record2 is one element of an array? => maybe use join()
record1 and record2 in one line but seperated by special char? (i.e: space, tabs) => maybe use regex
or more ...?
Best,
ulmer
-------
Just 4 Fun
[ 本帖最后由 ulmer 于 2006-7-19 17:59 编辑 ] |
|