On Mon, Jan 11, 2010 at 9:17 PM, irfan <[email protected]> wrote:

> Hey i think even "scp" works.
>
>
They disabled scp as well. On the day I found cp not working, I wrote the
following program :-

#include<stdio.h>

int main()
{
    FILE *fin, *fout;
    char f1[20],f2[20],ch;
    gets(f1);
    gets(f2);
    fin=fopen(f1,"r");
    if(fin==NULL)
    {      printf("File not found\n");
            return 1;
       }
    fout = fopen(f2,"w");
    while(!feof(fin))
    {    ch=fgetc(fin);
          fputc(ch,fout);
      }
     fclose(fin);
     fclose(fout);
     return 0;
}

Works for text files. Then used this to copy other files.
-- 
"Freedom is the only law". 
"Freedom Unplugged"
http://www.ilug-tvm.org

You received this message because you are subscribed to the Google
Groups "ilug-tvm" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

For details visit the website: www.ilug-tvm.org or the google group page: 
http://groups.google.com/group/ilug-tvm?hl=en

Reply via email to