[Л/Р 2] Никифорова Татьяна #28
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "tanya_nik16/distributed-computing:Nikiforova-TS-Lab-2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -0,0 +4,4 @@
using System.Text;
string[] files = Directory.GetFiles("../../../../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))
Аналогично
@ -0,0 +3,4 @@
using System.Text;
string[] numbers;
using (FileStream fstream = File.OpenRead("../../../../var/result/data.txt"))
Аналогично
@ -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", ";");
Зачем?)) Можно сразу в split поместить строку
"\r\n"
@ -0,0 +24,4 @@
int maxNumberSquared = maxNumber * maxNumber;
using (FileStream fstream = new FileStream("../../../../var/result/result.txt", FileMode.OpenOrCreate))
Аналогично с абсолютными путями
[Л/Р2] Никифорова Татьянаto [Л/Р 2] Никифорова Татьяна