Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

C++ rad sa fajlovima...

[es] :: C/C++ programiranje :: C++ rad sa fajlovima...

[ Pregleda: 6026 | Odgovora: 7 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

had
BGD

Član broj: 1505
Poruke: 163
*.drenik.net



Profil

icon C++ rad sa fajlovima...10.03.2002. u 13:28 - pre 268 meseci
Jel zna neko neki dobar tutorial za rad sa folderima, fajlovima... za pocetnike.
Cisto ono: napravi novi folder, obrisi folder, obrisi fajl...

Jedite kod Dzoa!
 
Odgovor na temu

Dragi Tata
Malo ispod Kanade

Član broj: 1958
Poruke: 3906
..ndg-pm4-1.dialup.nethere.net



+6 Profil

icon Re: C++ rad sa fajlovima...10.03.2002. u 18:40 - pre 268 meseci
Ne znam za tutorijale, ali samo da ti kažem da u standardom C++u nemaš rad sa folderima, već ćeš morati da koristiš OS komande koje nisu portabilne :(
 
Odgovor na temu

had
BGD

Član broj: 1505
Poruke: 163
*.drenik.net



Profil

icon Re: C++ rad sa fajlovima...10.03.2002. u 19:49 - pre 268 meseci
Citat:
Dragi Tata:
Ne znam za tutorijale, ali samo da ti kažem da u standardom C++u nemaš rad sa folderima, već ćeš morati da koristiš OS komande koje nisu portabilne :(


Sta to znaci, da ne mogu da ih prenosim na razlicite OS_ove?
Pa posto ja radim na Win_u jel mozes da mi kazes neke osnovne komande koje mi trebaju pa cu ja pomocu njih da precesljam google...

Jedite kod Dzoa!
 
Odgovor na temu

Dragi Tata
Malo ispod Kanade

Član broj: 1958
Poruke: 3906
..g-c5300-1.dialup.nethere.net



+6 Profil

icon Re: C++ rad sa fajlovima...10.03.2002. u 22:25 - pre 268 meseci
Evo ti citat iz MSDN-a:

File I/O Functions
The following functions are used with files.

Function Description
AreFileApisANSI Determines whether the file I/O functions are using the ANSI or OEM character set code page.
CancelIo Cancels all pending I/O operations that were issued by the calling thread for the specified file handle.
CloseHandle Closes an open object handle.
CopyFile Copies an existing file to a new file.
CopyFileEx Copies an existing file to a new file.
CopyProgressRoutine An application-defined callback function used with CopyFileEx and MoveFileWithProgress.
CreateDirectory Creates a new directory.
CreateDirectoryEx Creates a new directory with the attributes of a specified template directory.
CreateFile Creates or opens a file object.
CreateIoCompletionPort Creates and I/O completion port or associates an instance of an opened file with a newly created or an existing I/O completion port.
DefineDosDevice Defines, redefines, or deletes MS-DOS device names.
DeleteFile Deletes an existing file.
FileIOCompletionRoutine An application-defined callback function used with ReadFileEx and WriteFileEx.
FindClose Closes the specified search handle.
FindCloseChangeNotification Stops change notification handle monitoring.
FindFirstChangeNotification Creates a change notification handle.
FindFirstFile Searches a directory for a file whose name matches the specified file name.
FindFirstFileEx Searches a directory for a file whose name and attributes match those specified.
FindNextChangeNotification Requests that the operating system signal a change notification handle the next time it detects an appropriate change.
FindNextFile Continues a file search.
FlushFileBuffers Clears the buffers for the specified file and causes all buffered data to be written to the file.
GetBinaryType Determines whether a file is executable.
GetCurrentDirectory Retrieves the current directory for the current process.
GetDiskFreeSpace Retrieves information about the specified disk, including the amount of free space on the disk.
GetDiskFreeSpaceEx Retrieves information about the specified disk, including the amount of free space on the disk.
GetDriveType Determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive.
GetFileAttributes Retrieves attributes for a specified file or directory.
GetFileAttributesEx Retrieves attributes for a specified file or directory.
GetFileInformationByHandle Retrieves file information for a specified file.
GetFileSize Retrieves the size of a specified file.
GetFileSizeEx Retrieves the size of a specified file.
GetFileType Retrieves the file type of the specified file.
GetFullPathName Retrieves the full path and file name of a specified file.
GetLogicalDrives Returns a bitmask representing the currently available disk drives.
GetLogicalDriveStrings Fills a buffer with strings that specify valid drives in the system.
GetLongPathName Converts the specified path to its long form.
GetQueuedCompletionStatus Attempts to dequeue an I/O completion packet from a specified I/O completion port.
GetShortPathName Retrieves the short path form of a specified input path.
GetTempFileName Creates a name for a temporary file.
GetTempPath Retrieves the path of the directory designated for temporary files.
LockFile Locks a region in an open file.
LockFileEx Locks a region in an open file for shared or exclusive access.
MoveFile Moves an existing file or a directory.
MoveFileEx Moves an existing file or a directory.
MoveFileWithProgress Moves a file or directory.
PostQueuedCompletionStatus Posts an I/O completion packet to an I/O completion port.
QueryDosDevice Retrieves information about MS-DOS device names.
ReadDirectoryChangesW Retrieves information describing the changes occurring within a directory.
ReadFile Reads data from a file, starting at the specified position.
ReadFileEx Reads data from a file asynchronously.
ReadFileScatter Reads data from a file and stores the data into a set of buffers.
RemoveDirectory Deletes an existing empty directory.
ReplaceFile Replaces one file with another file.
SearchPath Searches for the specified file.
SetCurrentDirectory Changes the current directory for the current process.
SetEndOfFile Moves the end-of-file position for the specified file.
SetFileApisToANSI Causes the file I/O functions to use the ANSI character set code page.
SetFileApisToOEM Causes the file I/O functions to use the OEM character set code page.
SetFileAttributes Sets a file's attributes.
SetFilePointer Moves the file pointer of an open file.
SetFilePointerEx Moves the file pointer of an open file.
SetFileSecurity Sets the security of a file or directory object.
SetFileShortName Sets the valid data length of the specified file.
SetFileValidData Sets the valid data length of the specified file.
SetVolumeLabel Sets the label of a file system volume.
UnlockFile Unlocks a previously locked region in an open file.
UnlockFileEx Unlocks a previously locked region in an open file.
WriteFile Writes data to a file.
WriteFileEx Writes data to a file asynchronously.
WriteFileGather Gathers data from a set of buffers and writes the data to a file.


Obsolete Functions
These functions are provided only for compatibility with 16-bit versions of Windows.

_hread
_hwrite
_lclose
_lcreat
_llseek
_lopen
_lread
_lwrite
OpenFile

 
Odgovor na temu

had
BGD

Član broj: 1505
Poruke: 163
*.drenik.net



Profil

icon Re: C++ rad sa fajlovima...10.03.2002. u 23:02 - pre 268 meseci
E hvala ti ko bratu :)
Samo jos nesto:
Ja jos nisam nabavio ljudski kompajler :( tj. imam turbo cpp 3.0 jel to znaci da ovo ne mogu da koristim dok ne nabavim nesto normalno?
Jedite kod Dzoa!
 
Odgovor na temu

Dragi Tata
Malo ispod Kanade

Član broj: 1958
Poruke: 3906
209.132.90.*



+6 Profil

icon Re: C++ rad sa fajlovima...11.03.2002. u 02:35 - pre 268 meseci
Eh, pa treba ti nešto što može da radi sa win32, a prilično sam siguran da TC 3.0 to ne može. No, ako već voliš Borland, ima besplatno da se skine njihov dobar kompajler BC 5.0. Pitaj Zaštitu, on ga koristi...
 
Odgovor na temu

Ivan Tanasic
BGD-SRBIJA

Član broj: 220
Poruke: 965
*.rcub.bg.ac.yu

Jabber: Autoexes@jabber.sk
ICQ: 129145438


Profil

icon Re: C++ rad sa fajlovima...12.03.2002. u 19:25 - pre 268 meseci
Citat:
had:
E hvala ti ko bratu :)
Samo jos nesto:
Ja jos nisam nabavio ljudski kompajler :( tj. imam turbo cpp 3.0 jel to znaci da ovo ne mogu da koristim dok ne nabavim nesto normalno?


www.bloodshed.net/devcpp.html rulez :)))

naravno tu je i cygwin, posluzice i vc++ kao i borland neki noviji....
Ivan Tanasic - Autoexes

>cd pub
>more beer
 
Odgovor na temu

Ivan Tanasic
BGD-SRBIJA

Član broj: 220
Poruke: 965
*.rcub.bg.ac.yu

Jabber: Autoexes@jabber.sk
ICQ: 129145438


Profil

icon Re: C++ rad sa fajlovima...13.03.2002. u 18:39 - pre 268 meseci
Da, i ovo sto se tice rada sa direktorijumima/ fajlovima...

Uvek postoji i solucija da naucis unix system callove za rad sa istim a da program kompajliras pod gcc pomocu cygwina ;)))))))))
Ivan Tanasic - Autoexes

>cd pub
>more beer
 
Odgovor na temu

[es] :: C/C++ programiranje :: C++ rad sa fajlovima...

[ Pregleda: 6026 | Odgovora: 7 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.