All Content
Blogs
Forums
News
Tutorials
Log In
Sign Up
Login
Username / Email
Password
Remember me
Forgot password?
Login
or
Don't have a GameDev.net account?
Sign up
Forgot your password?
Email Address
Reset Password
Please contact us if you have any trouble resetting your password.
Home
Blogs
Forums
News
Portfolios
Projects
Tutorials
20
users logged in
Proud partner of GDC 2025
New?
Learn about game development
.
Before posting, review our
community guidelines
.
Support GameDev.net with a monthly
GDNet+ subscription
!
Follow Us
Chat in the
GameDev.net Discord!
Back to General and Gameplay Programming
Advertisement
fscanf with strings
General and Gameplay Programming
Programming
Started by
Zoe
May 15, 2001 05:02 PM
-1
comments, last by
Zoe
23 years, 9 months ago
Zoe
Author
122
May 15, 2001 05:02 PM
Hi, I''m using the following code to populate my array with ints. #include
int list[5]; FILE *fp = fopen("myfile.txt","rt")if(fp!=NULL) { for(int a=0; a<5; a++) { fscanf(fp,"%i",&list
Thanks in advance! ' Target=_Blank>Link
Cancel
Save
This topic is closed to new replies.
Advertisement
Popular Topics
C++ pointers that are released upon going out of scope
General and Gameplay Programming
Adding Support for Custom Literal Constants
AngelCode
How to Handle Complex Side Effects and Event Sequencing in a Turn-Based Game Like XCOM?
General and Gameplay Programming
click and drag sprite
For Beginners
PGS solver implementation problems
Math and Physics
How to Resolve This Normal Issue?
Graphics and GPU Programming
Advertisement
Recommended Tutorials
XML in Games
General and Gameplay Programming
Industry Producer Interview Project: Game Development Team Problems Analysis (Part 2)- Interview with Louis Castle
Production and Management
XRay Unreal Engine 4.5 source code
Engines and Middleware
Automata, Virtual Machines and Compilers - Part 2
General and Gameplay Programming
Creating a Very Simple GUI System for Small Games - Part I
General and Gameplay Programming
Advertisement
Reticulating splines
About GameDev.net
Community Guidelines
Terms of Service
Privacy Policy
Contact Us
Copyright (c) 1999-2025 GameDev.net, LLC
Back to Top