Home > Mobile >  Creating a json data file for help: timing
Creating a json data file for help: timing

Time:10-01

I a rookie, just contact with programming, to achieve data read from the SQL database, automatic generation of one or more of the json file, and regularly updated to cover the entire file, did not affect other users access to coverage, how to implement? Large coffee, please lend a hand

CodePudding user response:

Read and write files to see my blog: https://blog.csdn.net/guishuanglin/article/details/101688775

CodePudding user response:

Did not affect other users access to cover the by Mr Into temporary files, then renamed, basically, the user is not feeling.
Another note: other users access to the file, if others in the file, could you delete not to drop the original file.

CodePudding user response:

reference 1st floor guishuanglin response:
to read and write files to see my blog: https://blog.csdn.net/guishuanglin/article/details/101688775

Thank you big coffee. I go to learn,

CodePudding user response:

https://blog.csdn.net/guishuanglin/article/details/101704301
Java in two different ways, in additional ways written documents, coding format of the specified file at the same time, the read/write threads concurrent operation the same file

CodePudding user response:

reference 4 floor guishuanglin response:

https://blog.csdn.net/guishuanglin/article/details/101704301Java in two different ways, in additional ways written documents, coding format of the specified file at the same time, the read/write threads concurrent operation the same file

Thank god so much, I am a small dishes, look not to understand completely, I don't know what to save code format, how to run, but I will study hard, thank you again,

CodePudding user response:

refer to fifth floor mind wander reply:
Quote: refer to 4th floor guishuanglin response:

https://blog.csdn.net/guishuanglin/article/details/101704301
Java in two different ways, in additional ways written documents, coding format of the specified file at the same time, the read/write threads concurrent operation the same file

Thank god so much, I am a small dishes, look not to understand completely, I don't know what to save code format, and how to run, but I will study hard, thank you again,


I was written in the Java development tools commonly used is the eclipse or idea is to choose a, almost.
Slowly, you ask this question, a lot of work 1 to 2 years to also do not have written a similar code. Experience is summarized. Come on

CodePudding user response:

refer to the second floor guishuanglin response:
does not influence the other users access to cover, this by Mr Into temporary files, then renamed, basically, the user is not feeling.
Another note: other users access to the file, if others in the file, could you delete not to drop the original file.

I saw last night several Java based video class, wanted to learn. Net realize this function, but look at your blog looks like Java. Powerful.net many ah, ready to learn Java,
I downloaded javase running environment and save copy your code to Java. Java format, but with the command javac Java. Java, how to compile not ah, don't know what am I doing this right, you use Oracle javase running environment of the club's official website?

CodePudding user response:

Directly next eclipse is a new project, to build a class, the copy is ok.

CodePudding user response:

With the JDK 1.8 64, eclipse in 64 (64) are now

CodePudding user response:

I've learned the.net, introduction to ok, make convenient interface, but the Java to learn more, but to look for a job is definitely good Java. After the phone app development, data analysis, artificial intelligence, large sites Java is of advantage.

CodePudding user response:

references to the tenth floor guishuanglin response:
I learned before..net, introduction to ok, make convenient interface, but the Java to learn more, but to look for a job is definitely good Java. After the phone app development, data analysis, artificial intelligence, large sites Java is of advantage.

Thank you teacher, I download learning now, I just feel this is very fun, want to have no matter to learn, hold up your time, teacher, I learn to look himself first, really don't know I'm consult you,

CodePudding user response:

references 9 f guishuanglin response:
with JDK 1.8 64, eclipse in 64 (now 64)

Build project, but run error line 25
The Exception in the thread "main" Java. Lang. Error: Unresolved compilation problem:
The at wite. ReadWriteFile. Main (ReadWriteFile. Java: 25)

Public static void main (String [] args) {
ReadWriteFile ff=new ReadWriteFile ();
Ff. RunThread ();
}
Is this method made a mistake

CodePudding user response:

Is not wrong, is in the class package com. The test package name, must be the same level with the file directory. This is the rule: the Java package hierarchy and directory hierarchy are exactly the same.
  • Related