I need to take the end off of a file. What I mean is that I have a file, and it has an end marker, but I can't write past the end marker. Is there a way to do this?
jackmaverick1 -4 Junior Poster
Recommended Answers
Jump to PostCan you re-phrase your question, please?
Jump to PostOK, here's the design.
[Exception Trap begin]
Open a BufferedReader to the original file.
Open a BufferedWriter to a temporary file.
Loop through each line of the file testing for the custom end of file marker.
If not found, write the line to the temp file.
If found, write …
All 7 Replies
thines01 401 Postaholic Team Colleague Featured Poster
jackmaverick1 -4 Junior Poster

hfx642
jackmaverick1 -4 Junior Poster

hfx642
thines01 401 Postaholic Team Colleague Featured Poster
jackmaverick1 -4 Junior 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.