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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:11:46+00:00 2026-06-13T22:11:46+00:00

I have a simple file like: 124 123 122 121 120 I try to

  • 0

I have a simple file like:

124
123
122
121
120

I try to read it in softimage using jscript.

I have this:

var ForReading = 1;
var fso = new ActiveXObject("Scripting.FileSystemObject");
var fileObj = fso.GetFile("F:\\temp\\csv_reader_01.txt");
var ts = fileObj.OpenAsTextStream(ForReading, 0 );

while(!ts.AtEndOfSream) {
    var textLine = ts.ReadLine();
    LogMessage(textLine);
}
ts.Close();


LogMessage("done");

With the following output:

// INFO : 124
// INFO : 123
// INFO : 122
// INFO : 121
// INFO : 120
// ERROR : Input past end of file - [line 29]

It goes wrong at this line:

var textLine = ts.ReadLine();

How can this be solved, i would excpect the ! AtEndOfSream to do this.

  • 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-13T22:11:46+00:00Added an answer on June 13, 2026 at 10:11 pm

    Is ts.AtEndOfSream a typo? It should be ts.AtEndOfStream (notice the missing ‘t’ in ‘Stream’).

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

Sidebar

Related Questions

A really simple shell script question. I have a file with something like this:
I have a simple file stlTest2.cpp like this: #include <jni.h> #include <cmath> bool isnan
I have a simple XML file like this: <?xml version=1.0 encoding=UTF-8?> <?xml-stylesheet type=text/xsl href=01C3_OIZODEMO_certificato_v1.0.xsl?>
I have a simple resftul wcf service. The .svc file looks like this <%@
I have simple ascii text file like this: Madonna is a celebrity No she's
I have a simple config file that looks a bit like this: [sectionA] url
I have a simple batch file like this: echo off taskkill /im test.exe /f
I have a simple xml file that looks like this: <?xml version=1.0 encoding=UTF-8 standalone=yes
I have a simple XML file that looks like this: <?xml version=1.0 ?> <devices>
I have a simple assembly code file called exit.s that looks like the following:

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.