sorry, i guess i didn't made it create,
Example is i have a file, a text file that is. It's file name is textfile.txt
How can i convert that filename into a string.
User Profile
Collapse
-
Convert a file's name into a string - C Program
Hello there, can i ask if there is a way to convert a file's name into a string.
Sample:
filename = testcode.txt
it will convert the file's name into a string:
char convert[100];
covert = name of file
Is this possible?
Thank you guys ;_;
Regards,
AnimeProgrammer -
-
C Program - Gets/Prints IP Address
Hello guys,
Is there a way/code to get my computer's IP address and prints it without using ipconfig
Example:
My computer's IP address is: 198.110.69, it will print an output: 198.110.69 or 19811069 (without dots wiould be better though)
Thanks in Advance,
Regards,
AnimeProgrammer *brofist -
can I see examples, because its kind of hard when you say it. How do i do that?
Any answer is highly respected and appreciated.
Thanks
Regards,
AnimeProgrammerLeave a comment:
-
thanks, thats what i did... it was hard at first, but i managed to do it...I copy the original and named it temp..just like you said..THANKS SO MUCHLeave a comment:
-
Add Resources to C Program
Hello there, can I guys ask a serious question....
Is it possible to have a data-type that does not change when the program exits... Sample:
A boolean type data is false, then it became true i closed the program and open it again. So the boolean-type should be true again..
IS THIS POSSIBLE? :D thanks
Regards,
AnimeProgrammer -
How to delete a specific line in a text file using C program
How's it going guys? Can you guys tell me if you know some codes to delete a text in a specific line in a text file.
Example:
This is line 1
This is line 2
this is line 3
Removing line 2,
This is line 1
This is line 3
//////////////////
Every answer is much appreciated ;) Thank you..
Regards,
Anime Programmer -
-
How to open a file (text file) from a specific location using C?
Hello fellow programmers, i'm having trouble opening a file from a specific location. Please help.
...Code:#include "maidcafe.h" .... char directory[80] = {"C:\\Users\\Public\\Documents\\Anime Notes\\Transaction\\"}; char code[20]; printf("Enter file name"); gets(code); strcat(directory,code); system("start \"\" %s",directory); -
C Program - Escape Key as an input string
hello fellow programmers, Im having problems regarding this code, if this is impossible please let me know.
What i have here is a code that inputs as string. If the user press the "escape key" the program will go to a user-defined function.
...Code:#include "maidcafe.h" ///user-defined..it has all the header files i can imagine xD/// ..... if (strcmp(string, (escape key)) == 0){ -
Sorry, i know the FILE *fp, i just forgot it. it makes fp as a pointer to the file or something... But i did not know the "/n" should be in "/0" THANK YOU VERY MUCH weaknessforcats :) :) you saved me there. I wish to i could give you a cat as a thank you gift.Leave a comment:
-
Create text file with name as the current date using fopen()
Hello fellow programmers. Couldyouhelp me with this problem, i was this code form this website. This was the perfect website, it has all i need. BTW, the code was from an old post.
...Code:#include <time.h> #include<stdio.h> #include<sys/types.h> #include<sys/types.h> #include<fcntl.h> int main() { char s[30]; int fp; size_t i; struct tm tim;
No activity results to display
Show More
Leave a comment: