T
TDJ
I can find modules for making RTF files, but what if I want to go
the other way ?
I have a number of files (SMS messages) in a directory, which I
would like to convert to a database / table.
The message format per file is similar to:
(line feeds added for illustration.)
Anyone have hints at parsing that file ?
------------ start -------------------------------------
{
tf1\ansi\ansicpg1252\deff0\deflang1030
{\info
{\*\SemKeywords SEM
(SMS,NO_DM,NO_SMS_PIC,NO_SMS_SOUND,STATUS_REPORT,NO_REPLY_PATH,3-9-28-16-
28-33-8,+4599999999,VPREL:0-0-10-0,ST:1,PBLIST:+4588888888)
}
}
{\fonttbl
{\f0\fswiss\fprq2\fcharset0 Arial;}
}
\viewkind4\uc1\pard\f0\fs22
Message message bla bal abl ablba l balabablablasbdflkjsd flijg sidjfidifj
jijdifjdifj difj difj idjf idjf idjf idjf idj f
\par
}
----------- end --------------------------------------
the other way ?
I have a number of files (SMS messages) in a directory, which I
would like to convert to a database / table.
The message format per file is similar to:
(line feeds added for illustration.)
Anyone have hints at parsing that file ?
------------ start -------------------------------------
{
tf1\ansi\ansicpg1252\deff0\deflang1030
{\info
{\*\SemKeywords SEM
(SMS,NO_DM,NO_SMS_PIC,NO_SMS_SOUND,STATUS_REPORT,NO_REPLY_PATH,3-9-28-16-
28-33-8,+4599999999,VPREL:0-0-10-0,ST:1,PBLIST:+4588888888)
}
}
{\fonttbl
{\f0\fswiss\fprq2\fcharset0 Arial;}
}
\viewkind4\uc1\pard\f0\fs22
Message message bla bal abl ablba l balabablablasbdflkjsd flijg sidjfidifj
jijdifjdifj difj difj idjf idjf idjf idjf idj f
\par
}
----------- end --------------------------------------