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

  • Home
  • SEARCH
  • 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 8767619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:51:43+00:00 2026-06-13T16:51:43+00:00

I can read any file with Ruby (v1.9.3-p125) but have trouble with the following

  • 0

I can read any file with Ruby (v1.9.3-p125) but have trouble with the following commands:

IO.read("myself.rb")
File.open("myself.rb","rb")

When doing this on a “*.rb” file, it will return a blank string. If i rename the file “myself.rabit” it works.

How can I get around the apparent filtering of ruby source files?

  • 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-13T16:51:44+00:00Added an answer on June 13, 2026 at 4:51 pm

    There is no such filtering, you’re not encountering the bug you think you’re encountering.

    For instance, this works just fine as a complete Ruby program stored in a .rb file:

    puts File.open(__FILE__).read
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am wondering how can i upload my file. I am have read this
I'm trying to use EasyWSDL but I can't read any file from the filesystem.
Is there any tool that can read a WSDL file and based on the
Can I read an excel file without using any module? I tried like just
I have android.permission.READ_OWNER_DATA but I can't find any reliable code that would explain how
How can you do the equivalent of: s3cmd setacl --acl-grant=read:82b82d14a8d011e09d86001cc029a3688cdd635ea8d011e0b499001cc029a3689052a4f4a8d011e0bd25001cc029a368 s3://somebucket/some/path/to/file in Ruby? (preferably
I'm using ruby's File to open and read in a text file inside of
It's easy enough to read a CSV file into an array with Ruby but
I have a ruby file with these contents: # encoding: iso-8859-1 File.open('foo.txt', w:iso-8859-1) {|f|
I am trying to decompress a file with following Ruby code. File.open(file_compressed.gz) do |compressed|

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.