j2ME text content 13888810 34 How to read and print from txt

Updated on technology 2024-04-10
13 answers
  1. Anonymous users2024-02-07

    The reading method on the 1st floor is correct, so pay attention to the decoding. I'll give you another analysis:

    Split strings, how it works: Detect the split strings in the string, and then take the substrings.

    param original

    Strings that need to be split.

    paran regex splits strings.

    return The resulting string array after the split.

    public static string split(string original, string regex)

    vector result = new vector();

    int splitlen=;

    int end = ;

    int lastindex = 0;

    for(int index = 0;index+ ","+, index));

    if((index = , index))!=-1), index));

    lastindex=index+splitlen;

    else if(index!=end-1), end));

    break;

    elsebreak;

    string str = new string[for (int i=0;i<;i++)

    str[i]=(string);

    return str;

  2. Anonymous users2024-02-06

    You can use the character stream, read it in by line, use the comma as the separator, and use str) to generate the annihilation integer. This makes it possible to read into a two-dimensional array. It's not difficult, but I think it's better for you to do it yourself, and it's better to take the whole piece ** You learn too little.

    The tomb is closed.

  3. Anonymous users2024-02-05

    Slice the file into n small equal parts for reading.

  4. Anonymous users2024-02-04

    How big is the file? Splitting a file into smaller files is also quite resource-intensive, and you have to have a good algorithm.

  5. Anonymous users2024-02-03

    It's best to save in binary format!

  6. Anonymous users2024-02-02

    Chinese is not as good as English! You can see for yourself, though.

    This one is in English.

    This is the Chinese version.

    If it's because you can't understand the English version, you can check it under the next Kingsoft word bully or something like that, and you can read the API and learn English.

  7. Anonymous users2024-02-01

    If the file is not displayed under the project, import the file and refresh the project. "/"The documentation file is in a folder with the program below.

  8. Anonymous users2024-01-31

    Did you misplace the text, the text and other things should be put in the ress of the project, so you can try it out and read it!

  9. Anonymous users2024-01-30

    The default is at the same level as the src folder, build a test folder, you can change it in the properties, generally change it to res as a resource folder, just create a new one yourself, src is mainly to save the source code. After copying the file in, click the update button in the project, and you're good to go. When you read it, it's "That's it."

  10. Anonymous users2024-01-29

    Open the generated JAR package with WinRAR and other software (the JAR package is an ordinary zip file) to see if it is in the root directory of the JAR package, if not, it means that your packager did not type the file into it at all. This depends on what development tools you use, if you use WTK to develop directly, the resources should be placed in the ress directory of the project, and src will not be typed into the jar package.

  11. Anonymous users2024-01-28

    If you're using WTK or Eclipse, then place the text in the corresponding location in the Res folder of your project and click Package to ......

    If it has been packaged, open it with winrar, and pull the text ** directly into the package (the default package can be pulled directly into the root directory).

    For example: image a ="/");

    **a in the root directory (directly in the res folder).

    image a = "/b/");

    **a is placed in the b package in the res directory).

  12. Anonymous users2024-01-27

    1.Zhan Jianfei, ed.

    Publishing House of Electronics Industry.

    2."J2Me Development Essence", edited by Zhan Jianfei, Electronic Industry Press.

  13. Anonymous users2024-01-26

    You're a J2EE learner. That's a quick way to learn. You can take a look at Mr. Shen Dahai's book. It is called Shen Dahai's "J2Me Mobile Game Development Technology and Project Practical Explanation".

Related questions
11 answers2024-04-10

I feel like it's quicker to find a tutorial than to wait here for answers.

12 answers2024-04-10

I don't think it's appropriate to use .,Including replacing GB2312 with UTF-8 will also be wrong.。。 >>>More

9 answers2024-04-10

Hello landlord, you can try to connect the printer to the computer later. Go online** a driver wizard, install the driver wizard and use the driver wizard to scan the hardware device. At this time, the device of your printer will be displayed on the scan result, if the driver is not installed, you can click on the solution of the driver wizard, which will automatically help you ** the driver of the device and install it. >>>More

15 answers2024-04-10

Die, many people want to pass, and I haven't seen it yet.

17 answers2024-04-10

Find a professional to repair it. That's for the best.