Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 25th, 2024, 7:43 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Re: How to insert a line of text in a text file
PostPosted: August 26th, 2015, 12:20 am 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
One way using script, but not a complete solution:

Code:
var textObj = OpenFile("C:\\...\\myText.txt",true)
textObj.Write("Line1" + "\n" + "Line2" + "\n" + "New Line"); //etc.
textObj.Close();


Another way, using Opus standard actions, again not a complete solution (see attached IMP).

But maybe some ideas that can be built upon?

Attachment:
sampleT1.imp


You do not have the required permissions to view the files attached to this post.

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Last edited by Stephen on August 27th, 2015, 3:31 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: How to insert a line of text in a text file
PostPosted: August 27th, 2015, 2:50 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Happy it helped.

I uploaded a newer version of the sample IMP file which now uses SYSTEM_PUBLICATION_DIR for the text file location, in case that would be helpful.

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


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