Welcome to W3Courses

File

VBA Code to Call Windows API File Open Dialog Box in Microsoft Access

The code below calls the windows API File Open dialog box and when a user selects a file the function returns the file path.

Option Compare Database
Option Explicit

0

Source Code for Writing to and Reading from a File in C Programming

Following is the three different type of source code for writing to and reading from a file using C programming

1)
#include <stdio.h>
int main()
{
   char c;
   FILE *fpntr;
   fpntr = fopen("textFile","r");
   while(fscanf(fpntr,"%c", &c)==1)
        putchar(c);
   fclose(fpntr);
}

0

Rename a File on the Disk or Local File System using C#

The following code will rename a file called temp.txt to tempnew.txt

using System.IO;

0