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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

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

Keerthivarman
13-Aquamarine

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.

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

 

 

Top Tags