[Л/Р 2] Никифорова Татьяна #28

Merged
v.moiseev merged 3 commits from tanya_nik16/distributed-computing:Nikiforova-TS-Lab-2 into main 2023-12-17 22:01:52 +04:00
Contributor
No description provided.
tanya_nik16 added 1 commit 2023-10-18 10:58:34 +04:00
v.moiseev requested changes 2023-11-19 22:12:12 +04:00
@ -0,0 +4,4 @@
using System.Text;
string[] files = Directory.GetFiles("../../../../var/data");
Owner

Просто /var/data

Используйте абсолютный путь

Просто `/var/data` Используйте абсолютный путь
@ -0,0 +24,4 @@
await sourceStream.ReadAsync(buffer, 0, buffer.Length);
string text = Encoding.Default.GetString(buffer);
using (FileStream targetStream = new FileStream("../../../../var/result/data.txt", FileMode.OpenOrCreate))
Owner

Аналогично

Аналогично
@ -0,0 +3,4 @@
using System.Text;
string[] numbers;
using (FileStream fstream = File.OpenRead("../../../../var/result/data.txt"))
Owner

Аналогично

Аналогично
@ -0,0 +8,4 @@
byte[] buffer = new byte[fstream.Length];
await fstream.ReadAsync(buffer, 0, buffer.Length);
string text = Encoding.Default.GetString(buffer);
text = text.Replace("\r\n", ";");
Owner

Зачем?)) Можно сразу в split поместить строку "\r\n"

Зачем?)) Можно сразу в split поместить строку `"\r\n"`
@ -0,0 +24,4 @@
int maxNumberSquared = maxNumber * maxNumber;
using (FileStream fstream = new FileStream("../../../../var/result/result.txt", FileMode.OpenOrCreate))
Owner

Аналогично с абсолютными путями

Аналогично с абсолютными путями
v.moiseev changed title from [Л/Р2] Никифорова Татьяна to [Л/Р 2] Никифорова Татьяна 2023-11-19 22:12:24 +04:00
tanya_nik16 added 1 commit 2023-12-02 10:57:39 +04:00
tanya_nik16 added 7 commits 2023-12-02 11:00:16 +04:00
tanya_nik16 requested review from v.moiseev 2023-12-02 11:03:49 +04:00
v.moiseev merged commit ab129e6d5e into main 2023-12-17 22:01:52 +04:00
Sign in to join this conversation.
No reviewers
No Label
review
rework
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: v.moiseev/distributed-computing#28
No description provided.