cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

How to update the file content for a file that is already present in a file repository

Keerthivarman
14-Alexandrite

How to update the file content for a file that is already present in a file repository

i've a file in repository in which i need to remove some lines and add new line the deleted line.

 

i've got the text inside the file using loadText snnippet. Now it need to change some text inside the file. 

 

How we can achieve this.

 

Thanks in Advance!

 

Regards,

Keerthivarman

 

3 REPLIES 3

Check and see what services are available in the FileRepository Thing.

I forget if it has an 'update' I think you might only be able to 'append'

If that's the case, you may have to delete original and save the new.

Keerthivarman
14-Alexandrite
(To:PaiChung)

Hi,

 

yes i've checked that there is a append snippet in the repository thing, but i need to remove some line from that.

 

is it possible to do that?

 

thanks

keerthi 

Hi @Keerthivarman.

 

As Pai mentioned, you may need to delete then re-publish.  There is a DeleteFile service available. 

 

Regards.

 

--Sharon

 

 

Announcements


Top Tags