Hi,
does anyone know what function i can use in my program to get the computer name that the program is running on.
i was thinking of using getenv but there are no environment set for computer name so trying to find am alternative.
thanks
Hi,
Can anyone shed some light on how to open a file that is located on another server. The server that my program will be running on is on the same network as the server that i want to read the file from.
thanks,
Chris
F.Y.I. - i found a much easier way using split function.
this is what i used in my .NET application;
using namespace System::Text::RegularExpressions;
...
String* input = _T("DATASOURCE = ot4 7001 pfr");
Regex* regex = new Regex(S" "); // will be splitting on white spaces
String* tokens[] =...
can someone please give me a brief example on how to do the above with some code. This is a side task for me and I am really a novice in c++ and just havent had the chance to research what STL string is and how to use the find() and substr() functions as what cpjust suggested above.
I know this...
ok....so if i read in line by line, when i get to the line i want, eg
'DATASOURCE = ot2 7001'
how do i check that the line contains DATASOURCE and if it does save the first variable that comes after the = sign, for example in the above i would want to store ot2....i know how to do this in...
hi guys,
what is the easiest and most efficient way to search a text file for a keyword.
eg. I have a text file with contents like so
mytext.txt:
stuff stuff {
more stuff ....
}
and again more stuff
...
...
DATASOURCE = ot2 ... ....
even more stuff ...
..
and so on. What i want to do...
yon can just create another array like so:
my @html_new
foreach my $ln(@html)
{
unless($ln eq "\n" )
{
push @html_new, $ln;
}
}
now @html_new will have all the lines except blank lines
yeah, that was a mistake, didnt know they had a linux forum, so after posting in here I thought the appropriate place for the question is in Linux and didnt know how to delete this thread
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.