Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6159831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:11:52+00:00 2026-05-23T21:11:52+00:00

I have some file remotely : ___________ [somevar] Test: 2 ___________ And i want

  • 0

I have some file remotely :

___________
[somevar]
Test: 2
___________

And i want to change var “Test” to 3 for example so i will have :

___________
[somevar]
Test: 3
___________

I’m using this function to upload file

    ftp = ftplib.FTP('')
    ftp.connect(HOSTNAME,PORT)
    ftp.login(FTP_NAME,FTP_PASS)
    file = open(PATH + FILENAME, 'rb')
    ftp.storbinary('STOR '+FILENAME, file)
    file.close() 
    ftp.quit()

I know I can download the file, change it localy then upload it again But i’m searching for a remotely solution

Do you think this could be done ?


Can i do this via IOString :

Here is my code, unfortunately this doesn’t work 🙁


    # Writing to a buffer
    ChangeVar = StringIO("[Somevar] \nTest: 3")
    ftp = ftplib.FTP('')
    ftp.connect(HOSTNAME,FTP_PORT)
    ftp.login(FTP_NAME,FTP_PASS)

    ftp.storbinary('STOR '+Myvarfile, switchVar)

    #Disconnect
    ftp.quit()

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T21:11:53+00:00Added an answer on May 23, 2026 at 9:11 pm

    You can’t change the file remotely without RETR + STOR though you can edit it in the memory without saving if it is small.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have some methods that call File.Copy, File.Delete, File.Exists, etc. How can we test
I have some code that effectively does this : File file = new File(C:\\Program
Hi all i will have some file name to be saved with the name
I have some git repositories accessed remotely through SSH and I want to make
Hi I have some file that looks like this: some row /folder1/folder2/folder3/folder4/folder5 *.kuku.* noku
i have some file test.php <?PHP $config_key_security = test; ?> and i have some
I have a VC++ application and in my application i have some basic file
I have some values in a configuration file (XML file) with some values like
I have some images and pdf file on my server which I use in
I have some code in a javascript file that needs to send queries back

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.