cross-platform

  1. F

    How to set drive in C

    I wonder if it is possible to switch drivers in C. For example: /*Example*/ #include <stdio.h>; int main(){ SwitchDrive("C:\"); FILE *c=fopen("example.txt","w"); fprintf(c,"Example"); fclose(c); SwitchDrive("D:\"); FILE *d=fopen("d_drive.txt","w")...
Top