Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <tchar.h>
- #include <stdio.h>
- void _tmain()
- {
- WIN32_FIND_DATA FindFileData;
- HANDLE hFind;
- BOOL WINAPI saida;
- hFind = FindFirstFile(TEXT("*.*"), &FindFileData);
- _tprintf (TEXT("O primeiro ficheiro chamase %s\n"),FindFileData.cFileName);
- for(int x=0;x!=15;x++) {
- saida = FindNextFile(hFind,&FindFileData);
- if (saida == 0)
- {
- _tprintf (TEXT("Nada"));
- }
- else {
- _tprintf (TEXT("O proximo fixheiro chamase %s\n"),FindFileData.cFileName);
- }
- }
- FindClose(hFind);
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement