I have a file that has it's fields seperated by ^A characters (0x01) and want to use the boost tokenizer to split the fields.
However, when I attempt to use 0x01 directly as the token I get a complaint about type mismatches. To get around that issue I created a char array to hold the token but...
I have a flat file of the following format:
field1: data1.1 field2: data2.1 field4: data4.1
field1: data1.2 field3: data3.2 field5: data5.2
That I want to convert to a delimited file so that I can import it into a spreadsheet with the following format:
field1 field2 field3 field4...
This is a really simple question:
I have an xml file:
<data>
<foo>xxx</foo>
<bar>yyy</bar>
</data>
How can I get the values foo and bar to print using an xslt.
I assume it's something like:
<xsl:for-each select="/data/*">
xxRule Title: <xsl:value-of select="SOMETHING"/><br/>...
I am attempting to read a newsgroup using Outlook Express v. 6 however, many of the news postings show up with:
This is a multi-part message in MIME format.
------_=_NextPart_001_01C52B2C.6AB4E95C
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
At the...
How do I run gprof such that I can pass command line paramaters to my binary.
ie. I want to run a.out -f file.txt -n 100
I tried gprof a.out -f file.txt -n 100 gmon.out > profile.txt
But it didn't work! This HAS to be pretty simple.
Can anyone think of a more readable way to convert an int to a std::string then what I have below:
std::string FilePath;
std::stringstream ss;
std::string FileNum;
for(int i=0 ; i < 5; i++)
{
ss << i;
ss >> FileNum;
FilePath = "/blah/blah/FileName" + FileNum + ".txt";
cout << "File to open:"...
I am working on a fairly large project that takes 5 or so minutes for a complete compile and have been experimenting with using <a href="http://ccache.samba.org/">ccache</a> in order to speed up the build process.
I know however, that there is no such thing as a free lunch and that there must...
Does anyone see anything wrong with:
SELECT Notes FROM BT_Messages WHERE (Who = "USR_username1") OR (Who = "USR_ALL") OR (Who IN (SELECT GroupID FROM BT_Membership WHERE UserID = "username2")) GROUP BY UID,Notes ORDER BY UID
I am running under unix and I want my program to start another program and print out the PID of the process that is started.
ie.
Prog1:
int main(..)
{
int pid;
pid=start(prog2, arg);
printf("Prog 2 has been started and has a PID of: %d\n", pid);
}
Normally I would use system()...
I have a text file that I want to append to the start of. I know how to write to the beginning of the text file but not overwrite the information that is already there.
Any one have any idea how to do this?
Smilee
I have been writing some code to work around a Invalid Bookmark error I have been recieving when I access a MS Access database. Does anyone have any idea how to <b>create</b> this error in a database?
How can you determine the version number of a file?
I can see this version number by right clicking the file name in explorer and clicking on the version tab.
Is there a way to do this programatically?
I am attempting to delete log files that are older then a specified dat in Visual Basic. I know I can do this doing something like:
Dim DirName As String
Dim FileDate As Date
DirName = "C:\RDS\rdsbox\boxdata\Temp\Backup"
ChDir DirName
FileName = Dir$("*.*", ATTR_NORMAL)...
I am working on a DLL that is build in VC++ using ANSI C calls and then accessing the DLL in VB using a public declare function:
Public Declare Function GetTestDLLVersionNumber Lib "TestDLL.dll" Alias "GetVersionNumber" () As Long
I compiled the code on a WinNT machine and...
I am working on a DLL that is build in VC++ using ANSI C calls and then accessing the DLL in VB using a public declare function:
Public Declare Function GetTestDLLVersionNumber Lib "TestDLL.dll" Alias "GetVersionNumber" () As Long
I compile the code on a WinNT machine and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.