-
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;
-
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.
-
Slice the file into n small equal parts for reading.
-
How big is the file? Splitting a file into smaller files is also quite resource-intensive, and you have to have a good algorithm.
-
It's best to save in binary format!
-
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.
-
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.
-
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!
-
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."
-
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.
-
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).
-
1.Zhan Jianfei, ed.
Publishing House of Electronics Industry.
2."J2Me Development Essence", edited by Zhan Jianfei, Electronic Industry Press.
-
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".
I feel like it's quicker to find a tutorial than to wait here for answers.
I don't think it's appropriate to use .,Including replacing GB2312 with UTF-8 will also be wrong.。。 >>>More
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
Die, many people want to pass, and I haven't seen it yet.
Find a professional to repair it. That's for the best.