| | |
input data from a file into an Array
![]() |
What you have should work, unless I'm too tired to see a problem. Another way to write it would be
C Syntax (Toggle Plain Text)
inData.open(fileName.c_str()); for (int i = 0; inData>> T[i]; i++) ++size;
have you got any more code as if there is a problem you might need to show us the whole program. there is a good fstream tutorial on the site that can solve problems...
Im not entirely sure but my RLE compression / De-compression snippet MIGHT have file -> array code, but I think I performed the routine "on-the-fly"....
Im not entirely sure but my RLE compression / De-compression snippet MIGHT have file -> array code, but I think I performed the routine "on-the-fly".... http://sales.carina-e.com
no www
no nonsense
coming soon to a pc near you! :cool:
no www
no nonsense
coming soon to a pc near you! :cool:
![]() |
Similar Threads
- file to array question (C++)
- Please help with data file and array (C++)
- reading from file into array (C++)
Other Threads in the C Forum
- Previous Thread: Help please beginner in C
- Next Thread: Right Justified / decimal point alignment
| Thread Tools | Search this Thread |
adobe api array arrays binarysearch calculate char cm convert copyanyfile copypdffile cprogramme createcopyoffile createprocess() csyntax directory dynamic feet fflush file floatingpointvalidation fork forloop frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking hardware highest homework i/o inches incrementoperators intmain() iso kernel kilometer km linked linkedlist linux linuxsegmentationfault list locate logical_drives loopinsideloop. match matrix microsoft motherboard mqqueue mysql oddnumber odf open opendocumentformat opensource openwebfoundation owf pattern pdf performance pointer posix power probleminc program programming pyramidusingturboccodes read recursion recv recvblocked repetition research scanf scheduling segmentationfault send shape socketprograming socketprogramming stack standard strchr string suggestions systemcall test unix urboc user variable voidmain() wab win32api windows.h





