Reply to topic  [ 1 post ] 
write and long line 
Author Message
Yorick Guru

Joined: Thu May 10, 2007 12:07 pm
Posts: 62
Post write and long line
Code:
> write,  "AAAA"(-:1:3), "BBBBB"(-:1:3), "CCCCC"(-:1:3),  "DDDDD"(-:1:3), "EEEEE"(-:1:3)  , format="%s %s  %s  %s  %s  \n"
AAAA BBBBB  CCCCC  DDDDD  EEEEE 
AAAA BBBBB  CCCCC  DDDDD  EEEEE 
AAAA BBBBB  CCCCC  DDDDD  EEEEE


Ok this is what I wanted.
But why yorick do that :

Code:
> write,  "AAAA"(-:1:3), "BBBBB"(-:1:3), "CCCCC"(-:1:3),  "DDDDD"(-:1:3), "EEEEE"(-:1:3)  ,  "AAAA"(-:1:3), "BBBBB"(-:1:3), "CCCCC"(-:1:3),  "DDDDD"(-:1:3), "EEEEE"(-:1:3) ,"AAAA"(-:1:3), "BBBBB"(-:1:3), "CCCCC"(-:1:3),  "DDDDD"(-:1:3), "EEEEE"(-:1:3) ,  format="%s %s  %s  %s  %s  %s %s  %s  %s  %s %s %s  %s  %s  %s \n"
AAAA BBBBB  CCCCC  DDDDD  EEEEE  AAAA BBBBB  CCCCC  DDDDD  EEEEE AAAA BBBBB  CCCCC  DDDDD  EEEEE

AAAA BBBBB  CCCCC  DDDDD  EEEEE  AAAA BBBBB  CCCCC  DDDDD  EEEEE AAAA BBBBB  CCCCC  DDDDD  EEEEE

AAAA BBBBB  CCCCC  DDDDD  EEEEE  AAAA BBBBB  CCCCC  DDDDD  EEEEE AAAA BBBBB  CCCCC  DDDDD  EEEEE

Yorick make a new line if the line output of write is too long, in that case you have to delete the "\n" on the format. [/code]


Fri May 18, 2007 12:15 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.