🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #5154

Re: basic to pascal (mks$ in particular)

#5154
From: Shaun Case
Date: Tue, 12 Mar 1991 22:00
20 lines
1247 bytes
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.
Technical Details
Message-ID: <2065@gold.gvg.tek.com>
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!zephyr.ens.tek.com!gvgpsa!gold.gvg.tek.com!shaunc
References: <1991Mar12.203014.14472@csrd.uiuc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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