[futurebasic] Re: Array to text file

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 1998 : Group Archive : Group : All Groups

From: "Deepesh Letap" <DLetap@...>
Date: Mon, 24 Aug 1998 19:55:32 +0100

Dear Tom

Would suggest the following steps:

Open file
Check Size
Create Handle of that Size
Lock Handle
Read File Data into Handle
Unlock Handle
Close File
Use FN MUNGER to update <TAB> CHR$(9) within Handle
Use FN MUNGER to update <CR> CHR$(13) within Handle
Create New file
Open New file
Lock Handle
Write data to disk file
Unlock handle
Close file
Dispose Handle

That should do it!

Good luck

Deep



----------
>From: "Thomas Peters" <tpeters@...>
>To: <futurebasic@...>
>Subject: Re: [FB] Array to text file
>Date: Mon, Aug 24, 1998, 2:21 am
>

>Actually,
>
>Arrays to text and text to arrays...
>
>I developed a application that reads a government international tide table
>(text), formats it and outputs it into a text file suitable for Quark
>XPress. I want to change the way this works to either create a record and
>write it out in FB record format, use arrays or both.
>
>The text file from the government is in the form of 80 column and 365 rows.
>One row for each day. The tides for a given day are in raw form in the 80
>columns of data. My program currently reads one line at a time parses the
>line of text and outputs the data the way I need it. Basically, I insert the
>necessary tabs and returns that allow me to paste it into a Quark XPress
>document. The Quark document has the tables and layout formatting
>pre-designed. I use the same Quark template each year and change the heading
>information. What I want to do is create an automated calendar and have the
>tides displayed on it for the given day. So I think that the best thing to
>do is records.
>
>Essentially, I am doing this for an exercise in arrays and records and am
>looking for pointers and suggestions.
>
>
>Tom
>
>
>--
>To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>
>