LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Search Forums
User Name
Password

Notices


Showing results 1 to 1 of 1
Search took 0.01 seconds.
Search: Posts Made By: vmelkon
Forum: Programming 03-13-2024, 11:45 AM
Replies: 5
Views: 283
Posted By vmelkon
Another solution is to find out the size of the...

Another solution is to find out the size of the file and read the entire file in 1 shot.


int fileSize;
FILE *file = fopen(argv[1], "r");
fseek(file, 0, SEEK_END); //Go to end of file...
Showing results 1 to 1 of 1

 

Didn't find what you're looking for? Try Google:


  



All times are GMT -5. The time now is 02:50 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration