It is GREAT, thank you very much Salem! :)
Type: Posts; User: tomas.ra
It is GREAT, thank you very much Salem! :)
Could you tell me, please what I have study for to make this code from Salem with doCopy, true, false?
Eg. on http://www.cprogramming.com/tutorial.html
I do not know if doCopy is function or enum.....
It is very elegant solution :) .
I do not know how to declare doCopy, true, false.
Or which header file I must add. I am using now only <stdio.h> and <string.h> in this source.
I am trying to...
I need copy defined parts from input.txt file to new output.txt file.
These parts started with text-string "start" and finished with text-string "stop".
Eg. input.txt file:
Output.txt file:
I...
Thank you very much for your explanation and help.
I successfuly used clever solution from 'ssharish2005' with clear input buffer before 'gets'.
I need to read two strings from stdin (keyboard) and save them to two char-variables.
I do not know why when I use "gets" on the beginning of the code it is function OK:
printf("Enter Date Time...
Thank you very much Salem, you are so kind that you have a time to help others!! and you are so clever with C programming!
Your idea is the best and function perfectly!
I cannot find reason why...
Thank you very much for example and for your time.
Problem was really in error in my code and not problem with platform (XP & HT) as I thought.
In function "fgets(line,80,fr)" I use real integrer...
/* pok1.exe */
#include <stdio.h>
#include <string.h>
int main()
{
FILE *fr;
char file[14]="a1.txt", line[81], COM[6]="COM15";
if ((fr = fopen("file", "r")) != NULL);
...
Is it possible to compile basic C-sources for to execute on PC with CPU Pentium HT with OS WinXP? (and on servers with more CPU's).
The same source on PIII 233MHz with OS Win95 running and on PIV...
Thank you for your time and your help.
It must be probably solved with 2 char variables.
I used:
scanf("%6s", str10); /*put string to variable str10*/
strcpy(str6, str10); /*copy original string...
I cannot find if it is possible to join 2 strings for to use inside in function 'fopen'.
I have one string variable eg. 'char name[9] = filename' with name of file without extension.
I need add...
Thank you very much !! :)
It is function :)
Input file is ASCII text file (*fr). Each double-seguential-text-characters are one Hexa-number:
A0FF3046F0 etc..
A0 = 0xA0, FF = 0xFF, etc.
I need to write 0xA0 0xFF to new binary file (*fw). It...