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

Home » Public Forums » archive » writing ascii-file with separator
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
writing ascii-file with separator [message #46237] Tue, 08 November 2005 01:12
Tobias Geldhauser is currently offline  Tobias Geldhauser
Messages: 3
Registered: November 2005
Junior Member
Hello,

i want to write a floating array (tab=fltarr(5,1000) ) in a ascii-file.

I tried

openw, 1,'Data.txt', width=500
printf, 1,tab
close, 1

but the Colums aren't seperated - especially when the numbers are
nagative, then it looks like:

...00000-2.11
...99920 3.222

Now, i wanted to insert a separator like "tab" or ",", because i need
to read the file with excel/origin (without the seperator the file
isn't recognized as a ascii-file - even a "space" would do)

Is there a solution for my problem ? (the easier the better :) )


Greetings

Tobias
[Message index]
 
Read Message
Previous Topic: Re: Save 2D conversion matrix
Next Topic: Re: writing ascii-file with separator

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

Current Time: Wed Oct 08 19:50:48 PDT 2025

Total time taken to generate the page: 0.00413 seconds