Jump to content

How to write a numeric array line by line to a text file?


Recommended Posts

I need to write an array of 1 double precision number and 2 integers to a text file.
I used the flatten to text but I get the file like this.
 
   @$ěHĚjŻ˛@8     @‰Č  
   @$öOU#ĐT@<     @‰Č  
   @![šć‰±ę@@     @‰Č  
   @#—ˇę?ťš@D     @‰Č  
   @$D}m6r@H     @‰Č  
   @"žţ-Î@L     @‰Č  
   @"E†„CĘ@P     @‰Č  
   @#ěÔ5ś.p@T     @‰Č  
   @#øĚyě@X     @‰Č  
 
can you tell me a better way to do this?
I also need spaces between each element
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.