Question:

I need to write a program for Vista that has to read/write files...?

by  |  earlier

0 LIKES UnLike

What programming language should I use? I ran out of ideas. First, I tried to create a simple HTA application in Javascript. File IO from HTA works on Windows XP Professional, but HTA applications cannot write to files under Vista... :(

I could use maybe Visual Basic or something similar, but I don't want to do invest a lot of time and money in this. I need a quick solution. Please. (I know three languages - C, BASIC, and Javascript.)

 Tags:

   Report

2 ANSWERS


  1. A compiled C program should work fine.

    Simple:

    FILE *fptr;

    fptr = fopen("myfile.txt", "rw");

    if (fptr != NULL) {

    // Read/write statements go in here

    fclose(fptr);

    }


  2. Well, you know C. Are you familiar with the Windows API? If you are, I suggest getting Visual C++ 2008 Express Edition (free download) and using your knowledge of the API to recreate the program you need. Just write a simple console app. that could help you.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.