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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:58:04+00:00 2026-05-26T20:58:04+00:00

I have log data in a raw file. It looks like this: 2 A

  • 0

I have log data in a raw file. It looks like this:

"2 A U W 2 0 1 1 1 1 1 6 0 0 1 0 0 0        U S E R N 1      F T Y 0 0 0 0 0 0 D 9         2 A I L 2 0 1 1 1 1 1 6" 

and so on.

I need to substring this string on messages of equal length (From “2 A U W” to “4 A I L” 400 bytes). This is made by String as = s.substring(0,400).toLowerCase(). But this is not enough for me. I want to make a message like this:

2auw 
20011111600100 
usern1 
fty000000d9

Can anyone help with it?

  • 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-05-26T20:58:05+00:00Added an answer on May 26, 2026 at 8:58 pm

    You can add a back slash n “\n” to add line breaks to your string.

    I’m not sure if this is the best way, but it is one way to do it:
    If you know where you need the line breaks you can substring and add the back slash n. Something like this:

    String s = as.substring(0,4) + "\n" + as.substring(4,18) + "\n" + //....and so on
    

    Hope it helps

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

Sidebar

Related Questions

i have a log file which contains hundreds/thousands of seperate XML messages and need
I have a internal website that users log into. This data is saved as
I have the following code for doing a linear regression: data<-read.csv(File.csv,header=T) trans<-log(data) attach(trans) outdata<-summary(lm(Y~A
I have a instream that takes in raw binary data from Bluetooth on Android
I would like to log raw data like arrays in my logcat, so I
I have a nice DataGridView showing what is basically some kind of log data
We have multiple log files like database log, weblog, quartzlog in our application. Any
I have a log file in SqlServer that stores the time an application started,
I have a working perl script that grabs the data I need and displays
I am trying to POST a raw string via jQuery.ajax() e.g., contact_list=352345 I have

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.