hallo
i want 2 know if there is a function that reads from an input file and after reading this char will disapear.
i mean the read char will b disappeared.
ghadahelal 0 Light Poster
Recommended Answers
Jump to PostI think you need a clearer definition of what you want. characters don't just "disappear" -- unless your a magician.
Post an example of what you want. For example, if the word "hello" is read, do you want to delete the two 'l's and make it "heo"?
Jump to Post>then after reading the input file will b as shown 100
Files are persistent, they don't work like that. If you want a destructive read, you'll need to build it yourself by rewriting the file. Since that's an expensive operation, you'll want to seriously consider whether you really need this …
Jump to Postfor ex:
here is my input file ack=100 , and i want 2 read the four chars ack= and then after reading the input file will b as shown 100If I understand you, you want to put the value 100 into an integer variable:?: If that is true, you …
All 10 Replies

iamthwee
ghadahelal 0 Light Poster
jetru 0 Light Poster
ghadahelal 0 Light Poster
jetru 0 Light Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
ghadahelal 0 Light Poster

iamthwee
Narue 5,707 Bad Cop Team Colleague
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.