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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:43:55+00:00 2026-06-18T01:43:55+00:00

Does the input file need to be directly processed by the program? say in

  • 0

Does the input file need to be directly processed by the program?

say in the latest Beautiful strings question,

5

ABbCcc

Good luck in the Facebook Hacker Cup this year!

Ignore punctuation, please 🙂

Sometimes test cases are hard to make up.

So I just go consult Professor Dalves

how would i handle it say in javascript?

Many thanks

  • 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-18T01:43:56+00:00Added an answer on June 18, 2026 at 1:43 am

    For this you can use the node.js filesystem api (also write your code in node.js – it’s on google v8 so it should be fast enough for this one)

    EDIT

    I thought about your problem and it can be more simply solved (without using node.js) making a AJAX request to the file. You can achieve this like so :

    var xmlhttp;
    if (window.XMLHttpRequest)
      {   // code for IE7+, Firefox, Chrome, Opera, Safari
          xmlhttp = new XMLHttpRequest();
      }
    else
      {   // code for IE6, IE5
          xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      }
    xmlhttp.onreadystatechange=function()
      {
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
        {
        // This logs the input.txt contents in the console.
        // You can do whatever you want with it
        console.log(xmlhttp.responseText);
        }
      }
    xmlhttp.open("GET","input.txt",true);
    xmlhttp.send();
    }
    

    If you are a beginner you can read more stuff about AJAX requests on W3Schools

    You can choose the method that suites better for you! Good luck!

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

Sidebar

Related Questions

A simulation program I'm using requires a text based input file. I need to
I need to make a bash script that takes user input and does some
Anyone know if ffmpeg does asynchronous file io? That is, the input file is
I have an input file as following. I need to break them into multiple
For the program I'm working on, I frequently need to read input from a
How can I write regular expression in C# to validate that the input does
I have to write a Matlab script that does this: The input is 2
I just downloaded 2.2.1 and i've seen that my input view does not adjust
^([0-9]*[1-9][0-9]*(\.[0-9]+)?|[0]+\.[0-9]*[1-9][0-9]*)$ I don't know regular expression well. Above regular expression does not allow input
How does the stack overflow search input at the top works? It seems to

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.