comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Tab-Delimited Files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Tab-Delimited Files [message #9035 is a reply to message #9034] Thu, 22 May 1997 00:00 Go to previous messageGo to previous message
Jim O'connor is currently offline  Jim O'connor
Messages: 7
Registered: March 1996
Junior Member
rkj@dukebar.crml.uab.edu (R. Kyle Justice) writes:

> Is there a way to create tab-delimted files in
> PV-Wave?
>
> I have columns of data and I would like to
> separate them by tabs instead of spaces. I
> can't seem to get it to work with Fortran
> or C format codes in DC_WRITE_FIXED.
>
> Kyle J.
>
>

This is kludgy, but it works.

Wave> tabchar = '\x09'
Wave> z = [[1,4,7],[2,5,8],[3,6,9]]
Wave> status = dc_write_free('/tmp/junk.txt', z, /Col, Delim = tabchar)

But /tmp/junk.txt has spaces, as well as the tab characters you wanted.
So pull a Deus Ex Machina out of a hat, and strip off the spaces
using Perl:

% perl -pe 's/ //g' /tmp/junk.txt >/tmp/junk.txt.new

And there's your rabbit.

--

Jim
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Need quick example of linking IDL routines
Next Topic: How Object-oriented?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 08:30:32 PDT 2025

Total time taken to generate the page: 0.57458 seconds