Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9246207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:26:30+00:00 2026-06-18T09:26:30+00:00

Using the same project and text file as here: Java.NullPointerException null (again) the program

  • 0

Using the same project and text file as here: Java.NullPointerException null (again) the program is outputting the data but with . To put you in the picture:

This program is a telephone directory, ignoring the first "code" block, look at the second "code" block on that link, that is the text file with the entries. The program outputs them as it should but it is giving  at the beginning of the entries read from the text file ONLY.

Any help as to how to remove it? I am using Buffered Reader with File Reader in it.

  • Encoding of Text File: UTF-8
  • Using Java 7
  • Windows 7
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:26:32+00:00Added an answer on June 18, 2026 at 9:26 am

    Does the read in textfile uses UTF-8 with BOM? It looks like BOM signs: “”
    http://en.wikipedia.org/wiki/Byte_order_mark

    Are you runnig Windows? Notepad++ sould be able to convert. If using linux or the VI(M) you can use “:set nobomb”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are working with severall people on the same project and are using Mercurial
I am trying to compile my project on Snow Leopard using the same CMakeLists.txt
My Xcode project builds to variations of the same product using two targets. The
I create backups using the same .bak file. I've made a script to automagically
I am currently working on a Java project that will allow me to text
I have posted another question for the same project which was helpfully answered but
I am using a template in an ASP.NET MVC project. Template is here -
I'm trying to parse some css files using a code project parser found here
I know this isn't the best place to put this question but here it
I am using two web projects and both using same Database of MS SQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.