An electronic device comprising: a memory; a storage; and a processor configured to: write a file of an application in the memory in response to a file input request of the application; identify a write pattern of the file at a first time of writing the file of the application in the memory; update the write pattern in the memory; classify the file as one of a hot file and a cold file based on the write pattern of the file at a second time of copying the file of the application from the memory to the storage; the electronic device being characterized in that the processor is configured to: store a classification result of the file together with the file in the storage; or store the file in one of a first area of the storage and a second area of the storage based on the classification result of the file, wherein the file is classified as a hot file based on at least one modification and/or deletion in the file occurring more frequently than a predetermined frequency, and the file is classified as a cold file based on at least one modification and/or deletion in the file occurring less frequently than the predetermined frequency, and wherein the write pattern comprises a degree of modification of the file, wherein the processor is further configured to: control learning the write pattern for each file by using machine learning; assign a weight to at least one feature of the write pattern for the hot file based on a learning result; and assign a weight to at least one feature of the write pattern for the cold file based on the learning result. a memory; a storage; and a processor configured to: write a file of an application in the memory in response to a file input request of the application; identify a write pattern of the file at a first time of writing the file of the application in the memory; update the write pattern in the memory; classify the file as one of a hot file and a cold file based on the write pattern of the file at a second time of copying the file of the application from the memory to the storage; the electronic device being characterized in that the processor is configured to: store a classification result of the file together with the file in the storage; or store the file in one of a first area of the storage and a second area of the storage based on the classification result of the file, wherein the file is classified as a hot file based on at least one modification and/or deletion in the file occurring more frequently than a predetermined frequency, and the file is classified as a cold file based on at least one modification and/or deletion in the file occurring less frequently than the predetermined frequency, and wherein the write pattern comprises a degree of modification of the file, wherein the processor is further configured to: control learning the write pattern for each file by using machine learning; assign a weight to at least one feature of the write pattern for the hot file based on a learning result; and assign a weight to at least one feature of the write pattern for the cold file based on the learning result. write a file of an application in the memory in response to a file input request of the application; identify a write pattern of the file at a first time of writing the file of the application in the memory; update the write pattern in the memory; classify the file as one of a hot file and a cold file based on the write pattern of the file at a second time of copying the file of the application from the memory to the storage; the electronic device being characterized in that the processor is configured to: store a classification result of the file together with the file in the storage; or store the file in one of a first area of the storage and a second area of the storage based on the classification result of the file, store a classification result of the file together with the file in the storage; or store the file in one of a first area of the storage and a second area of the storage based on the classification result of the file, wherein the file is classified as a hot file based on at least one modification and/or deletion in the file occurring more frequently than a predetermined frequency, and the file is classified as a cold file based on at least one modification and/or deletion in the file occurring less frequently than the predetermined frequency, and wherein the write pattern comprises a degree of modification of the file, wherein the processor is further configured to: control learning the write pattern for each file by using machine learning; assign a weight to at least one feature of the write pattern for the hot file based on a learning result; and assign a weight to at least one feature of the write pattern for the cold file based on the learning result. control learning the write pattern for each file by using machine learning; assign a weight to at least one feature of the write pattern for the hot file based on a learning result; and assign a weight to at least one feature of the write pattern for the cold file based on the learning result.