read dataset
来源:互联网 发布:apache spark入门教程 编辑:程序博客网 时间:2024/05/21 12:43
OPEN DATASET FNAME FOR INPUT IN BINARY MODE.
READ DATASET FNAME INTO TEXT2 LENGTH LENG.
leng 能够判断 text2 的长度
DATA FNAME(60) VALUE 'myfile'.
DATA: TEXT1(4) VALUE '1234 ',
TEXT2(8) VALUE '12345678',
TEXT3(2),
LENG TYPE I.
OPEN DATASET FNAME FOR OUTPUT IN TEXT MODE.
TRANSFER: TEXT1 TO FNAME,
TEXT2 TO FNAME.
CLOSE DATASET FNAME.
OPEN DATASET FNAME FOR INPUT IN TEXT MODE.
DO 2 TIMES.
READ DATASET FNAME INTO TEXT3 LENGTH LENG.
WRITE: / TEXT3, LENG.
ENDDO.
CLOSE DATASET FNAME.
The output appears as follows:
12 4 12 8
This example writes the strings TEXT1 and TEXT2 to the file "myfile" in text mode. They are then read into the string TEXT3 (length 2). The amount of memory occupied by the lines is read into the field LENG.
- read dataset
- read dataset
- delphi 错误 Cannot modify a read-only dataset
- TQuery的cannot modify a read-only dataset解决方法
- DataSet
- DataSet
- DataSet
- DataSet
- DataSet
- dataset
- DataSet
- DataSet
- DataSet
- dataSet
- DataSet
- DataSet
- dataset
- DataSet
- busybox的init
- linux .o a .so .la .lo的区别
- MFC-Combo Box 控件的使用(转)
- IBM
- OGRE笔记
- read dataset
- IBATIS查询 模糊查询分享
- ComponentDrag约束窗口在一个容器内的拖动范围
- ORACLE函数大全
- Visual C++ 中 的ODBC 类
- Delphi-双色球分析软件(1)
- Security in Internet of Thing (1)
- 总分排名5-7的学生姓名(name,score),最好写成存储过程,请注意并列排名的问题
- deleted and restored “FilterImage” function