Results 1 to 3 of 3

Thread: [RESOLVED] Program read only files..?

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    35

    Resolved [RESOLVED] Program read only files..?

    Good evening everyone! I've come across a stump in my visual basic 'world'. You see, I was opened a text file, then a mp3, and finally my visual basic project I've been working on. Then that all got me thinking; How is that these files can be read from a text editor/media program/visual basic program?

    To put it more clearly, let's say I save a file in my visual basic program. Now I want the file extension to be something obscene like .xxx . Then I want to be able to file<open and it will show me .xxx file. How can I make it so that the program can read and write to the xxx files, but say a text editor couldn't open them up, or winamp.

    Rereading this I'm still not getting my exact point across... Pfft. Here's another approach to my question. When you try to open say, a mp3 in a text editor you get a whole load of gibberish (and vice-versa)... I want to be able to save whatever data I have to a file (such as first.xxx) and be able to read/write to it as I see fit.
    There I finally said what I wanted to say. I think that pretty much does it. Does anyone have any ideas? Or sources/sites I could look upon?

    Thanks so much in advance!

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Program read only files..?

    Well, reading/writing to files is easy regardless of the extension. What I think you want is to add a file association, that's fairly easy as well.

    Have a read here
    http://vbaccelerator.com/home/VB/Cod...ns/article.asp

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    35

    Re: Program read only files..?

    Excellent, that was quite a perfect direction to point me into. Many thanks Penagate!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width