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 7898031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:19:24+00:00 2026-06-03T08:19:24+00:00

I am trying to read a file (made a simple .txt file on my

  • 0

I am trying to read a file (made a simple .txt file on my desktop for that purpose) from machine using Dart on Dartium browser.

I have an input field, added a listener to it and here is how it looks:

  void _onFileSelect(event) {
    dom.File file = _fileInput.files.item(0);

    dom.FileReader reader = new dom.FileReader();
    //reader.readAsBinaryString(file);

    reader.addEventListener('load', (event) {
      print(reader.result); // This is the line I am having the problem with.
    });

    reader.readAsText(file);
  }

When I select the file, I get error:

Stack Trace: 0. Function: ‘Object.noSuchMethod’ url: ‘bootstrap’ line:717 col:3

on the line I marked using an inline-comment.

I have also set up a script to execute Dartium with the required flag:

#!/bin/sh
cd /opt/DartEditor/dart-sdk/chromium
./chrome.exe --allow-file-access-from-files $@

Can anyone give any tips where the problem could be?

P.S. I am using Ubuntu Precise x64.

  • 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-03T08:19:25+00:00Added an answer on June 3, 2026 at 8:19 am

    Sorry, you can’t use the dart:io libraries in Dartium. Those libraries only work on Dart VM on the command line.

    You might want to use an XMLHttpRequest to read in the file from an HTTP server.

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

Sidebar

Related Questions

I am trying to read this file I created as sample made up from
I'm trying to read a file in my maven project at /src/main/resources/file.txt. I'm using
I'm trying to make a simple HTML server that will read a request from
I am trying to read file headers using java, I want to get file
I'm trying to read a file line by line starting from a specific line
I am trying to read a file(temp.txt) placed under /root directory on remote host(ubuntu)
I am trying to read from file: The file is multiline and basically i
I'm getting a very strange error while trying to read from a simple text
I'm trying to read from a text file to input data to my java
Using Android (Eclipse) I am trying to read a .csv file and dynamically populate

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.