User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 455,996 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,845 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 26 of 26
Search took 0.01 seconds.
Posts Made By: programmer321
Forum: C Jul 1st, 2008
Replies: 5
Views: 853
Posted By programmer321
Re: Code to write Hindi words into a textfile using Unicode codes.

Well precisely, can anyone help me writing a C code for converting Unicode data to ASCII data. Unicode data to be read from a particular file. like the file contains (नमस्ते) 10 times in...
Forum: C Jun 27th, 2008
Replies: 5
Views: 853
Posted By programmer321
Code to write Hindi words into a textfile using Unicode codes.

Hello,

Please guide me to write how to write a C code for converting Unicodes (like 0905 for अ). the output i.e. अ should be written to a text file.

Regards.
Forum: Shell Scripting Jun 25th, 2008
Replies: 4
Views: 1,624
Posted By programmer321
Script to telnet to another server

Hello,

I need to create a shell script to telnet to a remote server. Perform some action and then exit from that server.

I am trying with a dummy script:
#!/bin/bash

telnet 172.11.11.21...
Forum: Legacy and Other Languages Jun 24th, 2008
Replies: 5
Views: 1,407
Posted By programmer321
Re: Need to send Cntrl +C to an Running Exe using a DOS batch File.

But this thing is definitely possible in Linux.
Forum: Legacy and Other Languages Jun 20th, 2008
Replies: 5
Views: 1,407
Posted By programmer321
Need to send Cntrl +C to an Running Exe using a DOS batch File.

Hello,

I have a query regarding a DOS command. I know this link is not the right place to ask queres about DOS but didnt find any another link in this forum.

I need to send Cntrol +C to a running...
Forum: Java May 20th, 2008
Replies: 5
Views: 510
Posted By programmer321
Re: Problem while using functions readline and split.

Well this didnt make any difference.
Forum: Java May 20th, 2008
Replies: 5
Views: 510
Posted By programmer321
Re: Problem while using functions readline and split.

I agree with u that exception is caused by split function. As per my understanding Readline function should idly read on complete line, but here readline function is reading once a complete line and...
Forum: Java May 20th, 2008
Replies: 5
Views: 510
Posted By programmer321
Problem while using functions readline and split.

Hello,

I am writing a small java code which read from a text file line by line and parses each read line(hash seperated).

Here is the code snippet:
in =new BufferedReader(new InputStreamReader(new...
Forum: Shell Scripting May 8th, 2008
Replies: 3
Views: 1,474
Posted By programmer321
Re: Shell Script for yesterday's date.

Thanks Blater. It worked.
Forum: Shell Scripting May 8th, 2008
Replies: 3
Views: 1,474
Posted By programmer321
Shell Script for yesterday's date.

Can any one guie me how to find yesterday's date (taking care of the leap years as well)in the format yymmdd using a shell script.

Regards.
Forum: Shell Scripting May 1st, 2008
Replies: 5
Views: 645
Posted By programmer321
Forum: Shell Scripting May 1st, 2008
Replies: 5
Views: 645
Posted By programmer321
Re: Script to search numbers from a given range from a file

Thanks Salem for the response. Can u suggest me a solution for finding a list of missing number from a given range say between 1 and 120.

Regards.
Forum: Shell Scripting Apr 30th, 2008
Replies: 5
Views: 645
Posted By programmer321
Script to search numbers from a given range from a file

Hello,

I need to search from a text file all those number from the lines which which lie in the range 1 to 120. Say I have a file with number:
1
2
3
900
1200
so on...
Forum: C Apr 11th, 2008
Replies: 3
Views: 602
Posted By programmer321
Re: Signaling function behaving differently on Windows and Linux.

Thanks Mitrmkar,

My issue is resolved by using SetConsoleCtrlHandler. Regarding the responses you gave me:
1. "Inside Signal Handler" is printed each time I press Cntrl+C on linux. But the Exe does...
Forum: C Apr 9th, 2008
Replies: 3
Views: 602
Posted By programmer321
Signaling function behaving differently on Windows and Linux.

Hello,

I have written a test code for signal handling. The code is compataable for both Windows and Linux. The code is as:

#include <signal.h>
#include<stdio.h>
#include<string.h>
#include...
Forum: C Apr 7th, 2008
Replies: 11
Views: 1,702
Posted By programmer321
Re: Segmentation Fault at fclose

Definitely Jephthah. I will take definitely work upon ur advice. Thanks.

Regards.
Forum: C Apr 7th, 2008
Replies: 11
Views: 1,702
Posted By programmer321
Re: Segmentation Fault at fclose

Hello,

Thanks everybody, the issue is resolve. The problem was - the same logging function was being called by two threads without any mutex or concurrency checks being appiled on the functions....
Forum: C Apr 4th, 2008
Replies: 7
Views: 549
Posted By programmer321
Re: How to disable the cross(X) of a window using C programming

It has worked. I was making a silly mistake of include the #define _WIN32_WINNT 0x0500 after #include <windows.h>.

Thanks a lot for help.

Regards.
Forum: C Apr 4th, 2008
Replies: 7
Views: 549
Posted By programmer321
Forum: C Apr 4th, 2008
Replies: 7
Views: 549
Posted By programmer321
Re: How to disable the cross(X) of a window using C programming

Dear Narue,

Thanks for your response. Possible this would solve my problem. But i am struck up at the inital levels for incorporating this code into my main code . I tried to run the code provided...
Forum: C Apr 2nd, 2008
Replies: 7
Views: 549
Posted By programmer321
Re: How to disable the cross(X) of a window using C programming

-The compiler is VC++.
-Operating system is windows server 2003/ windows NT.
-This is a command line program.
Forum: C Apr 1st, 2008
Replies: 7
Views: 549
Posted By programmer321
How to disable the cross(X) of a window using C programming

Hello,

I need my C code Exe to exit only using Cntrol + C and the cross should be disabled. Can anyone help me with this.

Regards.
Forum: C Mar 16th, 2008
Replies: 11
Views: 1,702
Posted By programmer321
Re: Segmentation Fault at fclose

Thanks for ur response.. Well I do understand its difficult to understand from a code snippet. I ll try to explain wat I am trying to do. I hv taken a global file pointer. I open a file wit that file...
Forum: C Mar 15th, 2008
Replies: 11
Views: 1,702
Posted By programmer321
Re: Segmentation Fault at fclose

Hey I just forgot to specify that i am initially opening a file pointer before calling this function. Basicaaly, I am trying to implement cyclic logging i.e. if the my file size increeasies say 10...
Forum: C Mar 14th, 2008
Replies: 11
Views: 1,702
Posted By programmer321
Segmentation Fault at fclose

Hello,
In one of my C codes, I have written a function for logging into a files. When the size of the file exceeds 10 MB, I close that file and open a new file. But at run time my Code is crashing at...
Forum: C Aug 9th, 2007
Replies: 2
Views: 480
Posted By programmer321
Data compreesion in C

Hi All,

I am trying to compress a text file using C. For example, if data written in a text file is ABCDEFGH, it occupies 8 bytes. I want it to occupy only 1 byte so that the size of the file can be...
Showing results 1 to 26 of 26

 
All times are GMT -4. The time now is 9:43 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC