![]() |
|
#1
|
|||
|
|||
Remove char from a fileHi, i am doing some work with files in C/C++ and i wonder if there is some way, how to remove a word (array of chars) from a file. Thanks for any suggestions.
|
|||
|
#2
|
|||
|
|||
Re: Remove char from a fileWell to start off, do you know how to open and read characters and strings froma a file in c++?
If not, search this forum for examples using '#include <fstream>' There happens to be a thread with a good short example VERY close by right now. |
|
#3
|
|||
|
|||
Re: Remove char from a fileYes, I know how to read from a file. I just need a better solution for removing words from files than load the whole file into the memory, delete the words I want, and store it back to file.
|
|
#4
|
|||
|
|||
Re: Remove char from a fileWell then, get familiar with these iostrean class functions: cplusplus.com/reference/iostream/iostream/ ,,,,or ..../fstream/
All kinds of fun stuff in there. Find a way to 'get' whole words from a stream (hint hint). If I didn't want to store and manipulate the file data in memory I think I might just: CPP / C++ / C Code:
Last edited by Howard_L : 24-Aug-2008 at 20:32.
|
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compile errors on FLU | floogy | FLTK Forum | 14 | 05-Aug-2008 13:10 |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 08:44 |
| Double linked List & File System | NatsoumiMaya | C Programming Language | 1 | 10-Feb-2008 09:23 |
| Pointer initialization causing program abend? | emanresu | C Programming Language | 0 | 12-Dec-2006 11:36 |
| After execution - Error cannot locate /Skin File? | WSCH | C++ Forum | 1 | 05-Mar-2005 21:03 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The