[HELP] Read a line from file
I want to read file but line by line....
code should return 1st line n after that next line... and so on until the file ends.. someone plzzzz help... |
Re: [HELP] Read a line from file
Look at the file natives (hint, fread)
|
Re: [HELP] Read a line from file
I already gave you an example. Are you that ******* lazy?????
|
Re: [HELP] Read a line from file
Fysiks bro i'm not lazy..... but i did'nt get my desired thing....
in fgets function there is a argument of len of characters to be read.... but i don't know the exact number of characters... it would be different at every line... so i just don't know how to solve this problem... And bro don't be rude if someone don't understand.... |
Re: [HELP] Read a line from file
new buffer[128]
fgets(handle, buffer, charsmax(buffer)); It's the size of your buffer, the max length in characters you can retrieve at once. That's not something which will change on each line. Just use charsmax(), which means sizeof buffer- 1, and that's it. |
Re: [HELP] Read a line from file
Quote:
|
Re: [HELP] Read a line from file
Quote:
"bro" is also a Slang word in the Amrecian-English to call men. PS: In hebrew, "אחי" ("bro", "ahi") is also have the same definition @Back To The Topic Here you go: https://forums.alliedmods.net/showthread.php?t=46218 Next time learn how to use the search button. |
Re: [HELP] Read a line from file
Quote:
|
Re: [HELP] Read a line from file
thanx..Arkshine and simanovich
thanx guyz it was helpful :) |
Re: [HELP] Read a line from file
Quote:
Quote:
|
| All times are GMT -4. The time now is 23:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.