Path: utzoo!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!zephyr.ens.tek.com!gvgpsa!gold.gvg.tek.com!shaunc From: shaunc@gold.gvg.tek.com (Shaun Case) Newsgroups: comp.os.msdos.programmer Subject: Re: basic to pascal (mks$ in particular) Message-ID: <2065@gold.gvg.tek.com> Date: 12 Mar 91 22:00:21 GMT References: <1991Mar12.203014.14472@csrd.uiuc.edu> Distribution: na Organization: Grass Valley Group, Grass Valley, CA Lines: 20 In article <1991Mar12.203014.14472@csrd.uiuc.edu> leung@sp1.csrd.uiuc.edu (Bruce Leung) writes: >I'm trying to read a data file that was written using the mks$ function >in Basic. Actually, I assume it was written using that since the only >code I have is a Basic program to read the file (shown below). > Perhaps you could modify the code you have to read in the data, then print it back out as strings. If so, then you can read it in in C or Pascal and convert it that way, once. If you want to use C, take a look at fscanf(), or better yet, fgets() and sscanf(). -- Shaun Case: shaunc@gold.gvg.tek.com or atman%ecst.csuchico.edu@RELAY.CS.NET or Shaun Case of 1:119/666.0 (Fidonet) or 1@9651 (WWIVnet) --- A bullet in the Bush is worth two in the hand.