2 Replies - 430 Views - Last Post: 14 February 2013 - 04:28 PM Rate Topic: -----

#1 Mackiinio  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 16-September 12

Is it possible to edit a .txt file from a Textbox

Posted 12 February 2013 - 02:03 PM

Hi,
I have a program which allows a user to enter information into the program which will be stored in a file. When the user logs in the system recognizes the use log in a shows all the information in the correct text boxes .

I was wondering if it is possible to edit the information in the file which the user already enter by typing in the text boxes, which will then overwrite the information originally in the file?
Is This A Good Question/Topic? 0
  • +

Replies To: Is it possible to edit a .txt file from a Textbox

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 8955
  • View blog
  • Posts: 33,571
  • Joined: 12-June 08

Re: Is it possible to edit a .txt file from a Textbox

Posted 12 February 2013 - 02:05 PM

Sure.. you just need to first load all the data into memory, and then resave it with the new bits added.
Was This Post Helpful? 0
  • +
  • -

#3 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 574
  • View blog
  • Posts: 2,989
  • Joined: 19-May 09

Re: Is it possible to edit a .txt file from a Textbox

Posted 14 February 2013 - 04:28 PM

Or you can delete the original file and recreate it with the current contents of the text boxes.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1