Article ID 1255
Article Title HOWTO: Handling a TAB seperated Seq I/O file
Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=1255
KBase Category Legacy Char Mode
Date Created 01/17/2001
Last Edit Date 01/18/2001


Article Text
QUESTION:
How can I handle a tab seperated sequential I/O file? I prefer to handle a comma seperated file. If I do a readln I can not find any tab characters.

ANSWER:
You need to process this file character-by-character. So using Read_Block. The enclosed source does replace tab characters in a wildcard ASCII file to comma seperators. The extension of the output file will be DFI. So: "TEST.TXT" becomes "TEST.DFI"



Links Related to this Article
Source code for tab replacment

Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2024 Data Access Corporation. All rights reserved.

The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.