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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:39:36+00:00 2026-06-18T06:39:36+00:00

ok i have actually put some effort into trying to accomplish this, this time

  • 0

ok i have actually put some effort into trying to accomplish this, this time 🙂

i have this code:

#! /usr/bin/perl

open(my $fin, '<', "./file1.bin") or die "Cannot open file1.bin: $!";
binmode($fin);
open(my $fout, '>>', "./file2.bin") or die "Cannot create file2.bin: $!";
binmode($fout);


seek($fin,0x760, SEEK_CUR);
read($fin, 0x400,)
print ("$fin, $fout);
close($fout);

i dont know if you can see what i am trying to do, but i am trying to seek to offset 0x760
then read from offset 0x760 then read a chunck of bytes(0x400) from file1.bin and print that chunck of bytes to file2.bin

so i guess this is the flow of what i am trying to do:

open file1.bin for reading in binmode
open file2.bin for writing in binmode
seek to offset 0x760 in file1.bin
read a chunk of data (0x400) from file1.bin
write the chunk of data (0x400) to file2.bin

hopefully you understand what i am trying to accomplish 🙂 and any input would be educational 🙂

  • 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-18T06:39:37+00:00Added an answer on June 18, 2026 at 6:39 am

    There is a typo in your code:

    print ("$fin, $fout);
    

    should be replaced by (after the opening and bindmode)

    my $buffer = '';
    sysseek $fin, 0x760, SEEK_SET;
    sysread $fin, $buffer, 0x400;
    syswrite $fout, $buffer;
    close $fin;
    close $fout;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a minimal test case of some code that I actually have. It
In the following jsfiddle I have put some html and some css. I'm trying
I actually have some questions (real childish). 1) If I know that a website
I am finally asking this question as I have never actually found an answer.
I'm trying to understand what's going on in this code . KeyStore trustStore =
I have some working code that uses a SQL select statement within it. As
I have a windows service running.Inside this service I have hosted some service (WCF).
I am trying to find some minamilistic google geocoding script. The ones I have
In an attempt to clean up my code, I have tried to put all
I have jquery like this: $('.x').hover({ hover_width: 300, hover_height: 400, }); html code like

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.