Sign in with
Sign up | Sign in
Your question

How to make a a .ABC file? Help

Tags:
  • ABC
  • Apps
Last response: in Apps General Discussion
Share
August 13, 2014 10:16:48 PM

So for class i need to make a .abc o have the code in txt and everything but how do i make in to .abc now????? Please help VERYYYY APRECIATED

More about : make abc file

August 14, 2014 9:37:57 AM

  1. #include <stdio.h>
  2. int main( int argc, char **argv) {
  3. FILE *fp = fopen( "file.abc", "w");
  4. if (fp) {
  5. fprintf( fp, "This is my file\n");
  6. fclose( fp);
  7. return 0;
  8. } else {
  9. printf( "Unable to open file for writing\n");
  10. return 1;
  11. }
  12. } // main
m
0
l
August 14, 2014 9:54:23 AM

As I understand your question, you have a file "file.txt" but want it to be "file.abc". Assuming that you are using Windows there are a number of ways to do this. The simplest is to use the command

rename file.txt file.abc

In a command prompt.
m
0
l
Related resources
!