|
Beamlib 3.3.1
This is the Beam C++ class library.
|
A class to read and write CSV formatted files. More...
#include <BFileCsv.h>
Public Member Functions | |
| BFileCsv (char separator=';') | |
| BError | readCsv (BStringList &csvList) |
| BError | writeCsv (BStringList &csvList) |
Public Member Functions inherited from BFile | |
| BFile () | |
| BFile (const BFile &file) | |
| Create opened specified file. More... | |
| ~BFile () | |
| BError | open (BString name, BString mode) |
| Open file. More... | |
| BError | open (FILE *file) |
| Assign object to opened file handle. More... | |
| BError | open (int fd, BString mode) |
| Assign object to opened file descriptor. More... | |
| BError | openTemp (BString name, BString mode) |
| Open a tempory file with the given name prefix. More... | |
| BError | close () |
| Close file. More... | |
| int | isOpen () |
| Returns 1 if the file is open. More... | |
| int | isEnd () |
| Returns 1 if at the end of the file, 0 otherwise. More... | |
| FILE * | getFd () |
| File descriptor. More... | |
| BUInt64 | length () |
| File size in bytes. More... | |
| int | setVBuf (char *buf, int mode, size_t size) |
| Set stream buffering options. More... | |
| int | read (void *buf, int nbytes) |
| Read from file. More... | |
| int | readString (BString &str) |
| Read string. (ref fgets) More... | |
| char * | fgets (char *buf, size_t size) |
| int | write (const void *buf, int nbytes) |
| Write to file. More... | |
| int | writeString (const BString &str) |
| Write string to file. More... | |
| int | seek (BUInt64 pos) |
| Set seek position. More... | |
| BUInt64 | position () |
| The files position. More... | |
| int | printf (const char *fmt,...) |
| Formated print into the file. More... | |
| BError | truncate () |
| Truncate the file. More... | |
| BError | flush () |
| Flush the file. More... | |
| BString | fileName () |
| Return file name. More... | |
| BFile & | operator= (const BFile &file) |
A class to read and write CSV formatted files.
| BFileCsv::BFileCsv | ( | char | separator = ';' | ) |
| BError BFileCsv::readCsv | ( | BStringList & | csvList | ) |
| BError BFileCsv::writeCsv | ( | BStringList & | csvList | ) |