help! external file manipulation

Started by
2 comments, last by anarki 22 years, 10 months ago
can someone give me a code snippet that would neatly number and store a string in a txt file, and then recall it based on its number thanks
Advertisement
yes
Hi!
I think you should be a little more specific pal.
Maybe if you tell:
-what are you using (mfc, console, win32... or any other) ?
-Do you want the number to represent the order the string was stored or it can be any number you give?
-The string has unlimited size or is a short array (256)?
We could help you better...

See ya!

oro...?
SKeTch
SketchTurner is correct, you need to be more specific. Look up some of the following functions for basic C file i/o: fopen, fclose, fread, fwrite, fprintf, fscanf, fseek, ftell, fgetc, and fputc. They''re all in stdio.h.

[Resist Windows XP''s Invasive Production Activation Technology!]

This topic is closed to new replies.

Advertisement