john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

del files termie

#include <iostream.h>
#include <fstream.h>
#include <stdlib.h>
#include <string.h>


void main()
{
        char temp[100]; 
        char backslash;

        ifstream getdata;
        ofstream listdata;

        cout<<"searching"<<endl;
        //fff.exe is a dos utility for finding files

        system("c:\\backup\\test\\fff *.mp3 > erase.txt");

        getdata.open("erase.txt");
        listdata.open("mp3list.txt");

        do
        {

            do
            {
                getdata.get(backslash);
            }while(backslash != '\\');

            getdata >> temp;
            listdata << temp;
            cout << temp<<endl;


        }while(!getdata(EOF));

        cin.get();
        getdata.close();
        listdata.close();
}

  • « installing mysql5 no install windows 2006
  • httpgetv3 »

Published

Dec 13, 2006

Category

c

~50 words

Tags

  • c 95
  • del 1
  • files 16
  • termie 1