Visitor Messages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nsandy
    • Jul 2009
    • 0

    i have to create a text editor using c.
    n i want when the program runs a new file is opened.
    what should to do so?

    i have tried this..


    #include<stdio. h>
    #include<conio. h>
    void main()
    clrscr();
    FILE *fp;
    fp=fopen("untit led.txt",' w ');
    char line[80];
    scanf("%[^/n]",line);
    }
Working...