text file access error

vb6 Nepal
  • 13 years ago

    hi all,

    I have made a software in VB6, which uses text files to store data.
    When the software is installed in computer having FAT file system it is having no problem accessing files. But when it is installed in computer with NTFS file system , it says File/Path access error though this runs smoothly when user is Administrator.
    I am using this come Open "c:\data.txt" for Input as #1 'error here
    Please reply me if anyone has the solution for this.


    Thank you

  • 13 years ago

    Are you using any class to do this?

    There is a builtin vb class that allows you to access modify and create files this should solve ur problem,

    Dim the file, initialize it and it should do the trick

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“My definition of an expert in any field is a person who knows enough about what's really going on to be scared.” - P. J. Plauger