Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: SubLiminaL_WolF on May 13, 2003, 08:48 PM

Title: read new line
Post by: SubLiminaL_WolF on May 13, 2003, 08:48 PM
how would i get this code to read a new line for a proxy

   FILE *proxylist;
   proxylist = fopen("proxy.txt", "r");

   if(!proxylist){
      printf("proxy.txt not found\n");
      return 0;
   }
   char Proxy[16] = {0};
   if(reconnect == true){
      for(int i = 0;i <= 500; i++){
         if(!feof(proxylist)){
            fgets((char*)&Proxy, 16, proxylist);
         }
         reconnect = false;
      }
Title: Re:read new line
Post by: MrRaza on May 13, 2003, 10:12 PM
Open up your C book.
Title: Re:read new line
Post by: Banana fanna fo fanna on May 14, 2003, 02:56 PM
I know where you live.
Title: Re:read new line
Post by: SubLiminaL_WolF on May 14, 2003, 03:16 PM
omfg stop with the fuking comments just fucking answer my god damn question with a real answer not an obvious 1!!!