Re: Beginner Question - Resetting File Pointer

From: Jon A. Cruz (jon_at_joncruz.org)
Date: 03/14/04


Date: Sun, 14 Mar 2004 11:49:21 -0800

JP wrote:
> I am writing a simple program that checks to see if a
> user-inputed string is contained in a certain text file.
[SNIP]
> Any constructive comments are welcome.

You might want to be sure to use an explicit encoding for reading the file.



Relevant Pages

  • Re: ide-scsi cdrw mounts, cdrom works but no mount
    ... Based on that error, and that writing works OK, I guess that your ... but the reading bit is broken. ... separate lasers for reading and writing, ...
    (Debian-User)
  • Re: Problem with a script
    ... writing the code twice will only ... problem to less than 20 lines, people might've actually paid attention ... reading your entire code and parsing it in their head, ...
    (comp.lang.php)
  • Re: Terry Pratchett -EOS Alzheimers
    ... And you're not reading what I'm writing, That isn't what I've been saying ... reading some good science fiction, and it's not easy for people to be ...
    (uk.people.support.depression)
  • Re: StreamReader.close and StreamWriter.close
    ... in most languages you do need to use the closemethod after reading ... and writing to a file. ... "using" is equivalent to a try/finally block which calls Dispose ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Chord connection
    ... sound a little bizarre) is to meditate. ... because you're writing a minuet and trio in an 18th century style ... using new material helps to generate contrast. ...
    (rec.music.theory)