none
VB Won't let me edit text files. RRS feed

  • Question

  • Hello. 

    I want to create an application that creates and text file and then writes in it. Until now i have made the creation part. When i try to add data in this text file it gives an error. Saying "The process cannot access the file because it is being used by another process". Well you see, the problem is that it is being used by the same application that created the file. As long as i am running the application i can't edit the file. How can i prevent the application from reading the file so i can add text to it???

    Thank you very much!!!

    Saturday, October 6, 2012 12:41 PM

Answers

All replies

  • Ok i found the problem and now it is solved.
    • Marked as answer by Andrikos Rikos Saturday, October 6, 2012 1:43 PM
    Saturday, October 6, 2012 1:42 PM
  • Hi Andrikos,

    Welcome to the MSDN Forum.

    Would you like to share how do you resolved this issue?

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, October 8, 2012 9:52 AM
    Moderator