How to do things
AI Noob vs. Pro

List biggest files
List newest files
Show subdir sizes
Search in files
Replace word in files
List dir differences
Send files in LAN

Free Open Source:

Swiss File Knife

a command line
multi function tool.

remove tabs
list dir sizes
find text
filter lines
find in path
collect text
instant ftp or
http server
file transfer
send text
patch text
patch binary
run own cmd
convert crlf
dup file find
md5 lists
fromto clip
split files
list latest
compare dirs
save typing
trace http
echo colors
head & tail
dep. listing
find classes
speed shell
zip search
zip dir list

Depeche View
Source Research
First Steps

windows GUI

command line
file encryption

free external tools,
zero install effort,
usb stick compliant:

zip and unzip
diff and merge
reformat xml
reformat source

cpp sources

log tracing
mem tracing
using printf


stat. c array
stat. java array
var. c array
var. java array
view all text
as you type
surf over text
find by click
quick copy
multi view
find nearby
find by path
location jump
skip accents
clip match
filter lines
edit text
load filter
hotkey list
receive text
send in C++
send in Java
smooth scroll
touch scroll
fly wxWidgets
fly over Qt
search Java

Supersonic Text File Search - Free Download

C++ code example for sending UDP network text in Windows and Linux.

Send plain or colored UDP network text, then receive and view it instantly with a Freeware tool for Windows and Linux/Mac.

   Example how to send UDP text in C++.
   See also: sfk netlog.

   Compile like:
      Windows gcc : g++ netlog.cpp -lws2_32
      Windows VC  : cl  netlog.cpp ws2_32.lib
      Linux/Mac   : g++ netlog.cpp

   Then run a network text viewer:
      Windows: dview -net
      Linux/Mac: wine dview.exe -linux -net &

   Then run the program:
      Windows  : netlog.exe
      Linux/Mac: ./a.out

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <errno.h>

#ifdef _WIN32
  #include <windows.h>
  #ifdef _MSC_VER
    #define snprintf  _snprintf
    #define vsnprintf _vsnprintf
    #define sockerrno WSAGetLastError()
    #include <ws2tcpip.h>
    #define sockerrno errno
  #define socklen_t int
  #include <sys/socket.h>
  #include <netdb.h>
  #ifdef __APPLE__
    #define SOL_IP IPPROTO_IP
    #define INVALID_SOCKET -1
  #define sockerrno errno

char szLineBuf[500];

int iNetSock = INVALID_SOCKET;
int iRequest = 1;
struct sockaddr_in oAddr;
socklen_t iAddrLen = sizeof(oAddr);

int perr(const char *pszFormat, ...)
   va_list argList;
   va_start(argList, pszFormat);
   vsnprintf(szLineBuf, sizeof(szLineBuf)-10, pszFormat, argList);
   szLineBuf[sizeof(szLineBuf)-10] = '\0';
   printf("Error: %s\n", szLineBuf);
   return 0;

int netlog(const char *pszFormat, ...)
   char szHeadBuf[100];
   int  iHeadLen = 0;

   va_list argList;
   va_start(argList, pszFormat);
   vsnprintf(szLineBuf+100, sizeof(szLineBuf)-110, pszFormat, argList);
   szLineBuf[sizeof(szLineBuf)-10] = '\0';

   // change all [red] to compact color codes \x1Fr
   for (char *psz=szLineBuf+100; *psz; psz++)
      if (psz[0]=='[')
         for (int i=1; psz[i]; i++)
            if (i>=2 && psz[i]==']') {
               memmove(psz+2, psz+i+1, strlen(psz+i+1)+1);

   // add sfktxt header before text
   snprintf(szHeadBuf, sizeof(szHeadBuf)-10,
      ":sfktxt:v100,req%d,cs1\n\n", iRequest++);
   iHeadLen = strlen(szHeadBuf);
   char *pData = szLineBuf+100-iHeadLen;
   memcpy(pData, szHeadBuf, iHeadLen);

   sendto(iNetSock, pData, strlen(pData), 0,
      (struct sockaddr *)&oAddr, iAddrLen);

   return 0;

int main(int argc, char *argv[])
   const char *pszHost = "localhost";
   unsigned short iPort = 21323;

   #ifdef _MSC_VER
   WORD wVersionRequested = MAKEWORD(1,1);
   WSADATA wsaData;
   if (WSAStartup(wVersionRequested, &wsaData)!=0)
      return 9+perr("WSAStartup failed");

   memset((char *)&oAddr, 0,sizeof(oAddr));
   oAddr.sin_family      = AF_INET;
   oAddr.sin_port        = htons(iPort);

   struct hostent *pHost = gethostbyname(pszHost);
   memcpy(&oAddr.sin_addr.s_addr, pHost->h_addr, pHost->h_length);

   if ((iNetSock = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
      return 9+perr("cannot create socket");

   netlog("[Red]Foo[def] and [Blue]bar[def] "
          "went to the [Green]zoo[def].\n");

   return 0;